From be76fe61d8f63debcb5d363c43c8b6264b001d93 Mon Sep 17 00:00:00 2001 From: GJ Date: Wed, 17 Apr 2013 07:05:28 -0400 Subject: [PATCH] Fixed being unable to kick party members. --- .../java/com/gmail/nossr50/commands/party/PartyKickCommand.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/gmail/nossr50/commands/party/PartyKickCommand.java b/src/main/java/com/gmail/nossr50/commands/party/PartyKickCommand.java index d7a811de1..f388afeb8 100644 --- a/src/main/java/com/gmail/nossr50/commands/party/PartyKickCommand.java +++ b/src/main/java/com/gmail/nossr50/commands/party/PartyKickCommand.java @@ -21,7 +21,7 @@ public class PartyKickCommand implements CommandExecutor { Party playerParty = UserManager.getPlayer(sender.getName()).getParty(); OfflinePlayer target = mcMMO.p.getServer().getOfflinePlayer(args[1]); - if (!playerParty.getMembers().contains(target)) { + if (!playerParty.getMembers().contains(target.getName())) { sender.sendMessage(LocaleLoader.getString("Party.NotInYourParty", args[1])); return true; }