From cc46726d4662e53380204fc26a37ddc3f2e31483 Mon Sep 17 00:00:00 2001 From: Florian CUNY Date: Sun, 16 Jun 2019 09:20:11 +0200 Subject: [PATCH] Deprecated GameModePlaceholder#ISLAND_SPAWNPOINT The %island_spawnpoint% is identical to the %island_center% placeholder. --- .../world/bentobox/bentobox/lists/GameModePlaceholder.java | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/main/java/world/bentobox/bentobox/lists/GameModePlaceholder.java b/src/main/java/world/bentobox/bentobox/lists/GameModePlaceholder.java index 324c2f138..a166b872a 100644 --- a/src/main/java/world/bentobox/bentobox/lists/GameModePlaceholder.java +++ b/src/main/java/world/bentobox/bentobox/lists/GameModePlaceholder.java @@ -33,6 +33,10 @@ public enum GameModePlaceholder { ISLAND_PROTECTION_RANGE_DIAMETER("island_protection_range_diameter", (addon, user, island) -> island == null ? "" : String.valueOf(2 * island.getProtectionRange())), ISLAND_OWNER("island_owner", (addon, user, island) -> island == null ? "" : addon.getPlayers().getName(island.getOwner())), ISLAND_CREATION_DATE("island_creation_date", (addon, user, island) -> island == null ? "" : DateFormat.getInstance().format(Date.from(Instant.ofEpochMilli(island.getCreatedDate())))), + /** + * @deprecated As of 1.5.2, for removal; use {@link #ISLAND_CENTER} instead. + */ + @Deprecated ISLAND_SPAWNPOINT("island_spawnpoint", (addon, user, island) -> island == null ? "" : Util.xyz(island.getCenter().toVector())), ISLAND_NAME("island_name", (addon, user, island) -> island == null ? "" : (island.getName() == null ? "" : island.getName())), /** @@ -86,6 +90,9 @@ public enum GameModePlaceholder { */ ISLAND_BANS_COUNT("island_bans_count", (addon, user, island) -> island == null ? "" : String.valueOf(island.getBanned().size())), + /* Visited island-related (= island the user is standing on) */ + + /* Player-related */ /** * Displays whether this player has an island or not.