summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUberi <azhang9@gmail.com>2013-08-28 20:28:49 -0400
committerUberi <azhang9@gmail.com>2013-08-28 20:28:49 -0400
commit203c3da2af8e17e8b530f21830cb905ad71cecc3 (patch)
tree997c8fd0b2dd1e58c372b044f5213b0ea099b679
parent272541c9dadc57b0f1dfa54c74f8b0173c4dc07d (diff)
Add //about.
-rw-r--r--Chat Commands.md6
-rw-r--r--worldedit/init.lua2
-rw-r--r--worldedit_commands/init.lua8
3 files changed, 16 insertions, 0 deletions
diff --git a/Chat Commands.md b/Chat Commands.md
index 05b373b..1524dfe 100644
--- a/Chat Commands.md
+++ b/Chat Commands.md
@@ -2,6 +2,12 @@ Chat Commands
-------------
For more information, see the [README](README.md).
+### //about
+
+Get information about the mod.
+
+ //about
+
### //inspect
Enable or disable node inspection.
diff --git a/worldedit/init.lua b/worldedit/init.lua
index 1f16a5f..6d3efe4 100644
--- a/worldedit/init.lua
+++ b/worldedit/init.lua
@@ -17,3 +17,5 @@ loadmodule(path .. "/visualization.lua")
loadmodule(path .. "/serialization.lua")
loadmodule(path .. "/code.lua")
loadmodule(path .. "/compatibility.lua")
+
+print("[MOD] WorldEdit loaded!")
diff --git a/worldedit_commands/init.lua b/worldedit_commands/init.lua
index b6c1e79..9977674 100644
--- a/worldedit_commands/init.lua
+++ b/worldedit_commands/init.lua
@@ -50,6 +50,14 @@ worldedit.player_axis = function(name)
return "z", dir.z > 0 and 1 or -1
end
+minetest.register_chatcommand("/about", {
+ params = "",
+ description = "Get information about the mod",
+ func = function(name, param)
+ worldedit.player_notify(name, "WorldEdit 1.0 is available on this server. Type /help to get a list of commands, or get more information at https://github.com/Uberi/MineTest-WorldEdit/")
+ end,
+})
+
minetest.register_chatcommand("/inspect", {
params = "on/off/1/0/true/false/yes/no/enable/disable",
description = "Enable or disable node inspection",