From 5450ef6a5965d943ca820a3b32282d8fb8598e9c Mon Sep 17 00:00:00 2001 From: Florian CUNY Date: Thu, 11 Apr 2019 11:01:41 +0200 Subject: [PATCH] Added ISLAND_TRUSTED_COUNT and ISLAND_COOP_COUNT placeholders #621 --- .../bentobox/bentobox/lists/GameModePlaceholder.java | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/main/java/world/bentobox/bentobox/lists/GameModePlaceholder.java b/src/main/java/world/bentobox/bentobox/lists/GameModePlaceholder.java index 612fc3b47..dea3e63cd 100644 --- a/src/main/java/world/bentobox/bentobox/lists/GameModePlaceholder.java +++ b/src/main/java/world/bentobox/bentobox/lists/GameModePlaceholder.java @@ -1,6 +1,7 @@ package world.bentobox.bentobox.lists; import world.bentobox.bentobox.api.placeholders.GameModePlaceholderReplacer; +import world.bentobox.bentobox.managers.RanksManager; import world.bentobox.bentobox.util.Util; import java.text.DateFormat; @@ -49,6 +50,16 @@ public enum GameModePlaceholder { * @since 1.5.0 */ ISLAND_MEMBERS_COUNT("island_members_count", (addon, user, island) -> island == null ? "" : String.valueOf(island.getMemberSet().size())), + /** + * Displays the amount of players that are TRUSTED on this island. + * @since 1.5.0 + */ + ISLAND_TRUSTED_COUNT("island_trusted_count", (addon, user, island) -> island == null ? "" : String.valueOf(island.getMemberSet(RanksManager.TRUSTED_RANK, false).size())), + /** + * Displays the amount of players that are TRUSTED on this island. + * @since 1.5.0 + */ + ISLAND_COOP_COUNT("island_coop_count", (addon, user, island) -> island == null ? "" : String.valueOf(island.getMemberSet(RanksManager.COOP_RANK, false).size())), /** * Displays the amount of players that are currently visiting the island. * @since 1.5.0