mirror of
https://github.com/minetest-mods/3d_armor.git
synced 2024-08-19 04:24:11 +02:00
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",
|
||||
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
|
||||
|
Loading…
Reference in New Issue
Block a user