diff --git a/3d_armor/armor.lua b/3d_armor/armor.lua index 41242e7..abe60b0 100644 --- a/3d_armor/armor.lua +++ b/3d_armor/armor.lua @@ -634,3 +634,13 @@ minetest.register_chatcommand("kill", { end end, }) + +minetest.register_chatcommand("killme", { + description = "Kill yourself instantly", + func = function(name) + local player = minetest.get_player_by_name(name) + if player then + player:set_hp(0) + end + end, +})