mirror of
https://gitlab.com/phoenix-dvpmt/mmocore.git
synced 2024-11-24 00:15:16 +01:00
fix bug where party invitations aren't expired when party is already full
This commit is contained in:
parent
f2f6dd7659
commit
ad175aa511
@ -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 -> {
|
||||
|
Loading…
Reference in New Issue
Block a user