Skip to content

Commit

Permalink
Add //about.
Browse files Browse the repository at this point in the history
  • Loading branch information
Uberi committed Aug 29, 2013
1 parent 272541c commit 203c3da
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Chat Commands.md
Expand Up @@ -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.
Expand Down
2 changes: 2 additions & 0 deletions worldedit/init.lua
Expand Up @@ -17,3 +17,5 @@ loadmodule(path .. "/visualization.lua")
loadmodule(path .. "/serialization.lua")
loadmodule(path .. "/code.lua")
loadmodule(path .. "/compatibility.lua")

print("[MOD] WorldEdit loaded!")
8 changes: 8 additions & 0 deletions worldedit_commands/init.lua
Expand Up @@ -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",
Expand Down

0 comments on commit 203c3da

Please sign in to comment.