mirror of
https://git.minetest.land/VoxeLibre/VoxeLibre.git
synced 2024-11-22 18:41:09 +01:00
Remove killme and clearme
This commit is contained in:
parent
1fe3056c4b
commit
d88921b5f2
1 changed files with 7 additions and 16 deletions
|
@ -72,26 +72,17 @@ minetest.register_chatcommand("clear", {
|
||||||
end,
|
end,
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_chatcommand("clearme", {
|
|
||||||
description = S("Clear your inventory"),
|
|
||||||
func = function(name)
|
|
||||||
return handle_clear_command(name, name)
|
|
||||||
end,
|
|
||||||
})
|
|
||||||
|
|
||||||
minetest.register_chatcommand("kill", {
|
minetest.register_chatcommand("kill", {
|
||||||
params = S("<name>"),
|
params = S("[<name>]"),
|
||||||
description = S("Kill player"),
|
description = S("Kill player"),
|
||||||
privs = {kill=true},
|
privs = {kill=true},
|
||||||
func = function(name, param)
|
func = function(name, param)
|
||||||
return handle_kill_command(name, param)
|
if(param == "") then
|
||||||
end,
|
-- Selfkill
|
||||||
})
|
|
||||||
|
|
||||||
minetest.register_chatcommand("killme", {
|
|
||||||
description = S("Kill yourself"),
|
|
||||||
func = function(name)
|
|
||||||
return handle_kill_command(name, name)
|
return handle_kill_command(name, name)
|
||||||
|
else
|
||||||
|
return handle_kill_command(name, param)
|
||||||
|
end
|
||||||
end,
|
end,
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue