Restore builtin commands
This commit is contained in:
parent
1cc8232880
commit
9572d1f10b
@ -5,20 +5,13 @@ local function register_chatcommand_alias(alias, cmd)
|
|||||||
minetest.register_chatcommand(alias, def)
|
minetest.register_chatcommand(alias, def)
|
||||||
end
|
end
|
||||||
|
|
||||||
local function rename_chatcommand(newname, cmd)
|
|
||||||
local def = minetest.chatcommands[cmd]
|
|
||||||
minetest.register_chatcommand(newname, def)
|
|
||||||
minetest.unregister_chatcommand(cmd)
|
|
||||||
end
|
|
||||||
|
|
||||||
if minetest.settings:get_bool("mcl_builtin_commands_overide", true) then
|
|
||||||
register_chatcommand_alias("?", "help")
|
register_chatcommand_alias("?", "help")
|
||||||
register_chatcommand_alias("pardon", "unban")
|
register_chatcommand_alias("pardon", "unban")
|
||||||
rename_chatcommand("stop", "shutdown")
|
register_chatcommand_alias("stop", "shutdown")
|
||||||
register_chatcommand_alias("tell", "msg")
|
register_chatcommand_alias("tell", "msg")
|
||||||
register_chatcommand_alias("w", "msg")
|
register_chatcommand_alias("w", "msg")
|
||||||
register_chatcommand_alias("tp", "teleport")
|
register_chatcommand_alias("tp", "teleport")
|
||||||
rename_chatcommand("clear", "clearinv")
|
register_chatcommand_alias("clear", "clearinv")
|
||||||
|
|
||||||
minetest.register_chatcommand("banlist", {
|
minetest.register_chatcommand("banlist", {
|
||||||
description = S("List bans"),
|
description = S("List bans"),
|
||||||
@ -27,4 +20,3 @@ if minetest.settings:get_bool("mcl_builtin_commands_overide", true) then
|
|||||||
return true, S("Ban list: @1", minetest.get_ban_list())
|
return true, S("Ban list: @1", minetest.get_ban_list())
|
||||||
end,
|
end,
|
||||||
})
|
})
|
||||||
end
|
|
@ -206,9 +206,6 @@ mcl_enable_commandblocks (Enable Command Blocks) bool true
|
|||||||
# game by a lot.
|
# game by a lot.
|
||||||
mcl_node_particles (Block particles detail level) enum none high,medium,low,none
|
mcl_node_particles (Block particles detail level) enum none high,medium,low,none
|
||||||
|
|
||||||
# Enable hard overiding of builtin commands.
|
|
||||||
mcl_builtin_commands_overide (Enable hard overiding of builtin commands.) bool true
|
|
||||||
|
|
||||||
# If enabled, this will substitute a few blocks in village schematics so they blend into normal, snowy, and sandy areas. Defaults to true.
|
# If enabled, this will substitute a few blocks in village schematics so they blend into normal, snowy, and sandy areas. Defaults to true.
|
||||||
basic_pseudobiome_villages (Enables very basic, and experimental "pseudobiome-based" villages) bool true
|
basic_pseudobiome_villages (Enables very basic, and experimental "pseudobiome-based" villages) bool true
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user