From 862deff3739ea80034b0477b6827ff6c5cc448e7 Mon Sep 17 00:00:00 2001 From: paly2 Date: Fri, 17 Jun 2016 16:08:50 +0200 Subject: [PATCH] Add "ban" privilege for kill chatcommand --- 3d_armor/armor.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/3d_armor/armor.lua b/3d_armor/armor.lua index cf4de66..d913f2a 100644 --- a/3d_armor/armor.lua +++ b/3d_armor/armor.lua @@ -620,10 +620,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) if player then - player:set_hp(-1001) + player:set_hp(0) end end, })