diff --git a/src/main/java/com/gmail/nossr50/party/PartyManager.java b/src/main/java/com/gmail/nossr50/party/PartyManager.java index 6b3981893..44231f651 100644 --- a/src/main/java/com/gmail/nossr50/party/PartyManager.java +++ b/src/main/java/com/gmail/nossr50/party/PartyManager.java @@ -176,10 +176,13 @@ public final class PartyManager { */ public static Party getPlayerParty(String playerName) { for (Party party : parties) { - if (party.getMembers().contains(playerName)) { - return party; + for (OfflinePlayer member : party.getMembers()) { + if (member.getName().equals(playerName)) { + return party; + } } } + return null; }