mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-26 07:06:45 +01:00
Handle joining disbanded parties properly
This commit is contained in:
parent
45143836e5
commit
babb9baa2b
@ -315,10 +315,11 @@ public final class PartyManager {
|
|||||||
public static void joinInvitedParty(McMMOPlayer mcMMOPlayer) {
|
public static void joinInvitedParty(McMMOPlayer mcMMOPlayer) {
|
||||||
Party invite = mcMMOPlayer.getPartyInvite();
|
Party invite = mcMMOPlayer.getPartyInvite();
|
||||||
|
|
||||||
// // Pretty sure this isn't possible
|
// Check if the party still exists, it might have been disbanded
|
||||||
// if (!parties.contains(invite)) {
|
if (!parties.contains(invite)) {
|
||||||
// parties.add(invite);
|
mcMMOPlayer.getPlayer().sendMessage(LocaleLoader.getString("Party.Disband"));
|
||||||
// }
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
mcMMOPlayer.getPlayer().sendMessage(LocaleLoader.getString("Commands.Invite.Accepted", invite.getName()));
|
mcMMOPlayer.getPlayer().sendMessage(LocaleLoader.getString("Commands.Invite.Accepted", invite.getName()));
|
||||||
mcMMOPlayer.removePartyInvite();
|
mcMMOPlayer.removePartyInvite();
|
||||||
|
Loading…
Reference in New Issue
Block a user