mirror of
https://github.com/Uberi/Minetest-WorldEdit.git
synced 2025-01-07 21:37:35 +01:00
Add //about.
This commit is contained in:
parent
272541c9da
commit
203c3da2af
@ -2,6 +2,12 @@ Chat Commands
|
|||||||
-------------
|
-------------
|
||||||
For more information, see the [README](README.md).
|
For more information, see the [README](README.md).
|
||||||
|
|
||||||
|
### //about
|
||||||
|
|
||||||
|
Get information about the mod.
|
||||||
|
|
||||||
|
//about
|
||||||
|
|
||||||
### //inspect
|
### //inspect
|
||||||
|
|
||||||
Enable or disable node inspection.
|
Enable or disable node inspection.
|
||||||
|
@ -17,3 +17,5 @@ loadmodule(path .. "/visualization.lua")
|
|||||||
loadmodule(path .. "/serialization.lua")
|
loadmodule(path .. "/serialization.lua")
|
||||||
loadmodule(path .. "/code.lua")
|
loadmodule(path .. "/code.lua")
|
||||||
loadmodule(path .. "/compatibility.lua")
|
loadmodule(path .. "/compatibility.lua")
|
||||||
|
|
||||||
|
print("[MOD] WorldEdit loaded!")
|
||||||
|
@ -50,6 +50,14 @@ worldedit.player_axis = function(name)
|
|||||||
return "z", dir.z > 0 and 1 or -1
|
return "z", dir.z > 0 and 1 or -1
|
||||||
end
|
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", {
|
minetest.register_chatcommand("/inspect", {
|
||||||
params = "on/off/1/0/true/false/yes/no/enable/disable",
|
params = "on/off/1/0/true/false/yes/no/enable/disable",
|
||||||
description = "Enable or disable node inspection",
|
description = "Enable or disable node inspection",
|
||||||
|
Loading…
Reference in New Issue
Block a user