mirror of
https://git.minetest.land/VoxeLibre/VoxeLibre.git
synced 2024-11-26 12:31:05 +01:00
Remove kill/killme commands from 3d_armor
This commit is contained in:
parent
1fd3bba796
commit
7aedb3c4ad
1 changed files with 0 additions and 23 deletions
|
@ -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,
|
||||
})
|
||||
|
|
Loading…
Reference in a new issue