mirror of
https://git.minetest.land/MineClone2/MineClone2.git
synced 2025-04-04 21:31:28 +02:00
Remove killme and clearme
This commit is contained in:
@ -72,26 +72,17 @@ minetest.register_chatcommand("clear", {
|
||||
end,
|
||||
})
|
||||
|
||||
minetest.register_chatcommand("clearme", {
|
||||
description = S("Clear your inventory"),
|
||||
func = function(name)
|
||||
return handle_clear_command(name, name)
|
||||
end,
|
||||
})
|
||||
|
||||
minetest.register_chatcommand("kill", {
|
||||
params = S("<name>"),
|
||||
params = S("[<name>]"),
|
||||
description = S("Kill player"),
|
||||
privs = {kill=true},
|
||||
func = function(name, param)
|
||||
return handle_kill_command(name, param)
|
||||
end,
|
||||
})
|
||||
|
||||
minetest.register_chatcommand("killme", {
|
||||
description = S("Kill yourself"),
|
||||
func = function(name)
|
||||
if(param == "") then
|
||||
-- Selfkill
|
||||
return handle_kill_command(name, name)
|
||||
else
|
||||
return handle_kill_command(name, param)
|
||||
end
|
||||
end,
|
||||
})
|
||||
|
||||
|
Reference in New Issue
Block a user