Fix party users not being removed correctly (they left the party but still had their party id set)
This commit is contained in:
@@ -64,13 +64,14 @@ public class Remove implements SubCommand {
|
||||
return;
|
||||
}
|
||||
}
|
||||
party.removeUser(ChatUserManager.getChatUser(partyUser.getUuid()));
|
||||
|
||||
if (partyUser.getUuid().equals(party.getOwnerUuid())) {
|
||||
source.sendMessage(Utility.parseMiniMessage(Config.CANT_REMOVE_PARTY_OWNER));
|
||||
return;
|
||||
}
|
||||
|
||||
party.removeUser(ChatUserManager.getChatUser(partyUser.getUuid()));
|
||||
|
||||
|
||||
if (onlinePlayer != null && onlinePlayer.isActive()) {
|
||||
onlinePlayer.sendMessage(Utility.parseMiniMessage(Config.REMOVED_FROM_PARTY,
|
||||
Placeholder.unparsed("party", party.getPartyName())
|
||||
|
||||
Reference in New Issue
Block a user