From 7aedb3c4ad105a86f1fa959998bca182bd6410b2 Mon Sep 17 00:00:00 2001 From: Wuzzy Date: Sat, 18 Feb 2017 21:44:27 +0100 Subject: [PATCH] Remove kill/killme commands from 3d_armor --- .../minetest-3d_armor/3d_armor/armor.lua | 23 ------------------- 1 file changed, 23 deletions(-) diff --git a/mods/ITEMS/minetest-3d_armor/3d_armor/armor.lua b/mods/ITEMS/minetest-3d_armor/3d_armor/armor.lua index 378b56a889..fb6f61bc6d 100644 --- a/mods/ITEMS/minetest-3d_armor/3d_armor/armor.lua +++ b/mods/ITEMS/minetest-3d_armor/3d_armor/armor.lua @@ -621,26 +621,3 @@ minetest.register_globalstep(function(dtime) end armor.timer = 0 end) - --- kill player when command issued -minetest.register_chatcommand("kill", { - params = "", - description = "Kills player instantly", - privs = {ban=true}, - func = function(name, param) - local player = minetest.get_player_by_name(param) - if player then - player:set_hp(0) - 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(-1001) - end - end, -})