Fix a mistake in the kill chatcommand

Use "param" instead of "name" in "func"
This commit is contained in:
Pierre-Adrien Langrognet 2016-06-17 18:29:43 +02:00 committed by GitHub
parent 862deff373
commit c39f838893

@ -622,7 +622,7 @@ minetest.register_chatcommand("kill", {
description = "Kills player instantly",
privs = {ban=true},
func = function(name, param)
local player = minetest.get_player_by_name(name)
local player = minetest.get_player_by_name(param)
if player then
player:set_hp(0)
end