You can't accept an alliance request when you already have an ally

This commit is contained in:
TfT_02
2014-02-09 16:10:43 +01:00
parent 2ffdd340af
commit b653aa57b7
2 changed files with 6 additions and 1 deletions

View File

@ -23,6 +23,11 @@ public class PartyAllianceAcceptCommand implements CommandExecutor {
return true;
}
if (mcMMOPlayer.getParty().getAlly() != null) {
player.sendMessage(LocaleLoader.getString("Commands.Party.Alliance.AlreadyAllies"));
return true;
}
PartyManager.acceptAllianceInvite(mcMMOPlayer);
return true;