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; }