Realm count updated properly.

This commit is contained in:
2026-07-26 16:38:01 -04:00
parent 4a217d1a6b
commit 46045895d7
5 changed files with 19 additions and 23 deletions
@@ -106,6 +106,9 @@ public class DismissGuildHandler extends AbstractClientMsgHandler {
ErrorPopupMsg.sendErrorMsg(player, "A Serious error has occured. Please post details for to ensure transaction integrity");
return true;
}
if (toDismiss.guildState.equals(mbEnums.GuildState.Province))
nation.realmsOwned = nation.realmsOwned - 1;
nation.getSubGuildList().remove(toDismiss);
toDismiss.guildState = mbEnums.GuildState.Sovereign;
toDismiss.setNation(toDismiss);
@@ -131,7 +134,6 @@ public class DismissGuildHandler extends AbstractClientMsgHandler {
City.lastCityUpdate = System.currentTimeMillis();
ArrayList<PlayerCharacter> guildMembers = SessionManager.getActivePCsInGuildID(nation.getObjectUUID());
for (PlayerCharacter member : guildMembers) {
@@ -107,6 +107,11 @@ public class SwearInGuildHandler extends AbstractClientMsgHandler {
protectorate.guildState.equals(GuildState.Province))
nation.guildState = GuildState.Nation;
// Nation realm count update
if (protectorate.guildState.equals(GuildState.Province))
nation.realmsOwned = nation.realmsOwned + 1;
SendGuildEntryMsg msg = new SendGuildEntryMsg(player);
dispatch = Dispatch.borrow(player, msg);
DispatchManager.dispatchMsgDispatch(dispatch, mbEnums.DispatchChannel.SECONDARY);