Added island-center placeholder

#621
This commit is contained in:
Florian CUNY 2019-04-07 10:15:23 +02:00
parent e66f3842b7
commit d283de9440

View File

@ -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