mirror of
https://github.com/BentoBoxWorld/BentoBox.git
synced 2024-12-24 18:17:53 +01:00
Added an islands count for gamemodes in Management Panel
This commit is contained in:
parent
b89b3972cb
commit
c60e790749
@ -57,9 +57,12 @@ public class ManagementPanel {
|
||||
break;
|
||||
}
|
||||
for (Addon addon : addons) {
|
||||
GameModeAddon gameModeAddon = (GameModeAddon) addon;
|
||||
PanelItem addonItem = new PanelItemBuilder()
|
||||
.icon(addon.getDescription().getIcon())
|
||||
.name(ChatColor.WHITE + addon.getDescription().getName())
|
||||
.name(user.getTranslation(LOCALE_REF + "views.gamemodes.gamemode.name", TextVariables.NAME, addon.getDescription().getName()))
|
||||
.description(user.getTranslation(LOCALE_REF + "views.gamemodes.gamemode.description",
|
||||
"[islands]", String.valueOf(addon.getIslands().getIslandCount(gameModeAddon.getOverWorld()))))
|
||||
.build();
|
||||
|
||||
builder.item(startSlot + i, addonItem);
|
||||
|
@ -1001,6 +1001,10 @@ management:
|
||||
schems:
|
||||
name: "&6Schems"
|
||||
description: "&aOpens the Admin Schem menu."
|
||||
gamemode:
|
||||
name: "&f[name]"
|
||||
description: |+
|
||||
&aIslands: &b[islands]
|
||||
addons:
|
||||
name: "&6Addons"
|
||||
description: "&eClick &ato display currently loaded Addons"
|
||||
|
Loading…
Reference in New Issue
Block a user