Added login and logout notifiers

This commit is contained in:
2021-08-08 14:48:42 +02:00
parent 9551785f83
commit 31d2eb44d4
4 changed files with 73 additions and 1 deletions
@@ -45,7 +45,12 @@ public class PartyManager {
}
public static Party getParty(UUID uuid) {
return getParty(ChatUserManager.getChatUser(uuid).getPartyId());
for(Party party : parties) {
if(party.getPartyUsers().containsKey(uuid)) {
return party;
}
}
return null;
}
public static void loadParties() {