forked from mtcontrib/3d_armor
Fix a mistake in the kill chatcommand
Use "param" instead of "name" in "func"
This commit is contained in:
parent
862deff373
commit
c39f838893
@ -622,7 +622,7 @@ minetest.register_chatcommand("kill", {
|
|||||||
description = "Kills player instantly",
|
description = "Kills player instantly",
|
||||||
privs = {ban=true},
|
privs = {ban=true},
|
||||||
func = function(name, param)
|
func = function(name, param)
|
||||||
local player = minetest.get_player_by_name(name)
|
local player = minetest.get_player_by_name(param)
|
||||||
if player then
|
if player then
|
||||||
player:set_hp(0)
|
player:set_hp(0)
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user