mirror of
https://github.com/plan-player-analytics/Plan.git
synced 2024-11-05 10:20:23 +01:00
isEmpty addition
This commit is contained in:
parent
46ea5ccc6e
commit
ec3d2eba02
@ -57,6 +57,8 @@ public class KingdomsData extends PluginData {
|
||||
Map<String, OfflineKingdom> kingdoms = GameManagement.getKingdomManager().getKingdomList();
|
||||
|
||||
analysisContainer.addValue(getWithIcon("Kingdoms", "shield", "amber"), kingdoms.size());
|
||||
|
||||
if (!kingdoms.isEmpty()) {
|
||||
analysisContainer.addHtml("kingdomsAccordion", KingdomAccordionCreator.createAccordion(kingdoms));
|
||||
|
||||
Map<UUID, String> userKingDoms = new HashMap<>();
|
||||
@ -67,6 +69,7 @@ public class KingdomsData extends PluginData {
|
||||
}
|
||||
}
|
||||
analysisContainer.addPlayerTableValues(getWithIcon("Kingdom", "shield"), userKingDoms);
|
||||
}
|
||||
|
||||
return analysisContainer;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user