Remove kill/killme commands from 3d_armor

This commit is contained in:
Wuzzy 2017-02-18 21:44:27 +01:00
parent 1fd3bba796
commit 7aedb3c4ad
1 changed files with 0 additions and 23 deletions

View File

@ -621,26 +621,3 @@ minetest.register_globalstep(function(dtime)
end
armor.timer = 0
end)
-- kill player when command issued
minetest.register_chatcommand("kill", {
params = "<name>",
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,
})