mirror of
https://github.com/BentoBoxWorld/BentoBox.git
synced 2024-11-23 19:25:12 +01:00
Adds %gamemode_owns_island% placeholder
https://github.com/BentoBoxWorld/BentoBox/issues/1355
This commit is contained in:
parent
48310e858f
commit
64b5675bf0
@ -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;
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user