From 97dafc45fa550cbf40d4ad02f632ef328aee061f Mon Sep 17 00:00:00 2001 From: bm01 Date: Sat, 9 Feb 2013 15:52:09 +0100 Subject: [PATCH] Fixed players not joining their parties at login --- src/main/java/com/gmail/nossr50/party/PartyManager.java | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) 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; }