mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-26 15:16:45 +01:00
Fixed players not joining their parties at login
This commit is contained in:
parent
adf62fd332
commit
97dafc45fa
@ -176,10 +176,13 @@ public final class PartyManager {
|
|||||||
*/
|
*/
|
||||||
public static Party getPlayerParty(String playerName) {
|
public static Party getPlayerParty(String playerName) {
|
||||||
for (Party party : parties) {
|
for (Party party : parties) {
|
||||||
if (party.getMembers().contains(playerName)) {
|
for (OfflinePlayer member : party.getMembers()) {
|
||||||
|
if (member.getName().equals(playerName)) {
|
||||||
return party;
|
return party;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user