Fixed players not joining their parties at login

This commit is contained in:
bm01 2013-02-09 15:52:09 +01:00
parent adf62fd332
commit 97dafc45fa

View File

@ -176,10 +176,13 @@ public final class PartyManager {
*/
public static Party getPlayerParty(String playerName) {
for (Party party : parties) {
if (party.getMembers().contains(playerName)) {
for (OfflinePlayer member : party.getMembers()) {
if (member.getName().equals(playerName)) {
return party;
}
}
}
return null;
}