fix bug where party invitations aren't expired when party is already full

This commit is contained in:
Blekdigits 2021-01-28 18:34:08 +07:00
parent f2f6dd7659
commit ad175aa511

View File

@ -28,6 +28,10 @@ public class PartyInvite extends Request {
}
public void accept() {
if(party.getMembers().count() >= 4) {
MMOCore.plugin.configManager.getSimpleMessage("party-is-full").send(target.getPlayer());
return;
}
if(getCreator().isOnline())
party.removeLastInvite(getCreator().getPlayer());
party.getMembers().forEach(member -> {