players already flagged active cannot promote to active

This commit is contained in:
2024-04-29 18:51:46 -05:00
parent 93773a7784
commit 77cfa02bea
@@ -136,6 +136,10 @@ public class VendorDialogMsg extends ClientNetMsg {
} }
if(contract.getObjectUUID() == 1502040){ if(contract.getObjectUUID() == 1502040){
if(playerCharacter.isBoxed == false) {
ChatManager.chatSystemInfo(playerCharacter, "You Are Already The Active Character.");
return;
}
ChatManager.chatSystemInfo(playerCharacter, "Promoting To Active Duty"); ChatManager.chatSystemInfo(playerCharacter, "Promoting To Active Duty");
ArrayList<PlayerCharacter> currentBoxes = new ArrayList<>(); ArrayList<PlayerCharacter> currentBoxes = new ArrayList<>();
for(PlayerCharacter pc : SessionManager.getAllActivePlayerCharacters()){ for(PlayerCharacter pc : SessionManager.getAllActivePlayerCharacters()){