Cleanup of guildstate on boot
This commit is contained in:
1 parent
f7249ba656
commit
57ab356a3a
2 files changed
+15
-11
No files matched your search
@@ -181,6 +181,19 @@ public enum GuildManager {
|
||||
}
|
||||
}
|
||||
|
||||
public static mbEnums.GuildState calcuateGuildState(Guild guild) {
|
||||
|
||||
if (guild.getNation() == guild)
|
||||
return guild.getSubGuildList().isEmpty() ? mbEnums.GuildState.Sovereign : mbEnums.GuildState.Nation;
|
||||
|
||||
if (guild.getOwnedCity() == null)
|
||||
return guild.getNation().isEmptyGuild() ? mbEnums.GuildState.Errant : mbEnums.GuildState.Sworn;
|
||||
|
||||
return (guild.getOwnedCity().getTOL().getRank() == 8)
|
||||
? mbEnums.GuildState.Province
|
||||
: mbEnums.GuildState.Protectorate;
|
||||
}
|
||||
|
||||
//This updates tags for all online players in a guild.
|
||||
public static void updateAllGuildTags(Guild guild) {
|
||||
|
||||
|
||||
Reference in new issue
Block a user