diff --git a/3d_armor/armor.lua b/3d_armor/armor.lua index f335b47..41242e7 100644 --- a/3d_armor/armor.lua +++ b/3d_armor/armor.lua @@ -626,10 +626,11 @@ end) minetest.register_chatcommand("kill", { params = "", description = "Kills player instantly", + privs = {ban=true}, func = function(name, param) - local player = minetest.get_player_by_name(name) + local player = minetest.get_player_by_name(param) if player then - player:set_hp(-1001) + player:set_hp(0) end end, })