From c39f838893d121e0925ecb710a88183ff9cfd8ab Mon Sep 17 00:00:00 2001
From: Pierre-Adrien Langrognet <plangrognet@laposte.net>
Date: Fri, 17 Jun 2016 18:29:43 +0200
Subject: [PATCH] Fix a mistake in the kill chatcommand

Use "param" instead of "name" in "func"
---
 3d_armor/armor.lua | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/3d_armor/armor.lua b/3d_armor/armor.lua
index d913f2a..79f66e5 100644
--- a/3d_armor/armor.lua
+++ b/3d_armor/armor.lua
@@ -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