From 0d78830d5b05ef4e6a39a1c9233ea4253568be07 Mon Sep 17 00:00:00 2001 From: agrecascino Date: Thu, 18 Aug 2016 21:12:31 -0400 Subject: [PATCH] Fix kicking --- chatcommands.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chatcommands.lua b/chatcommands.lua index b4e0f91..4a4cade 100644 --- a/chatcommands.lua +++ b/chatcommands.lua @@ -252,7 +252,7 @@ factions.register_command("kick", { local victim = args.players[1] if factions.players[victim:get_player_name()] == faction.name and victim:get_player_name() ~= faction.leader then -- can't kick da king - faction:remove_player(player) + faction:remove_player(victim) return true else send_error(player, "Cannot kick player "..victim:get_player_name())