From d283de9440e975a64481064b3a75176caa8277ab Mon Sep 17 00:00:00 2001 From: Florian CUNY Date: Sun, 7 Apr 2019 10:15:23 +0200 Subject: [PATCH] Added island-center placeholder #621 --- .../world/bentobox/bentobox/lists/GameModePlaceholders.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/main/java/world/bentobox/bentobox/lists/GameModePlaceholders.java b/src/main/java/world/bentobox/bentobox/lists/GameModePlaceholders.java index 29be222dd..d039a46c3 100644 --- a/src/main/java/world/bentobox/bentobox/lists/GameModePlaceholders.java +++ b/src/main/java/world/bentobox/bentobox/lists/GameModePlaceholders.java @@ -16,6 +16,11 @@ public enum GameModePlaceholders { ISLAND_CREATION_DATE("island-creation-date", (addon, user, island) -> island == null ? "" : String.valueOf(island.getProtectionRange())), 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())), + /** + * Displays the coordinates of the island's center. + * @since 1.5.0 + */ + ISLAND_CENTER("island-center", (addon, user, island) -> island == null ? "" : Util.xyz(island.getCenter().toVector())), /** * Displays the X coordinate of the island's center. * @since 1.5.0