Adds %gamemode_owns_island% placeholder

https://github.com/BentoBoxWorld/BentoBox/issues/1355
This commit is contained in:
tastybento 2020-05-15 17:53:22 -07:00
parent 48310e858f
commit 64b5675bf0

View File

@ -324,10 +324,15 @@ public enum GameModePlaceholder {
*/
DEATHS("deaths", (addon, user, island) -> String.valueOf(addon.getPlayers().getDeaths(addon.getOverWorld(), user.getUniqueId()))),
/**
* Returns whether this player is on his island.
* Returns whether this player is on his island and has a rank greater than VISITOR_RANK
* @since 1.13.0
*/
ON_ISLAND("on_island", (addon, user, island) -> String.valueOf(addon.getIslands().userIsOnIsland(addon.getOverWorld(), user)));
ON_ISLAND("on_island", (addon, user, island) -> String.valueOf(addon.getIslands().userIsOnIsland(addon.getOverWorld(), user))),
/**
* Returns whether this player is an owner of their island
* @since 1.14.0
*/
OWNS_ISLAND("owns_island", (addon, user, island) -> String.valueOf(island != null && user.getUniqueId().equals(island.getOwner())));
private String placeholder;
/**