mirror of
https://github.com/BentoBoxWorld/BentoBox.git
synced 2025-02-17 04:41:40 +01:00
Fix maxteamsize placeholders
The placeholders were not using the correct API call and so were reporting based on the player's permission and not the actual island's maxteam size. https://github.com/BentoBoxWorld/BentoBox/issues/1753
This commit is contained in:
parent
9ed0620bb0
commit
839f05de71
@ -110,7 +110,7 @@ public enum GameModePlaceholder {
|
|||||||
* Returns the maximum number of members the island can have
|
* Returns the maximum number of members the island can have
|
||||||
* @since 1.5.0
|
* @since 1.5.0
|
||||||
*/
|
*/
|
||||||
ISLAND_MEMBERS_MAX("island_members_max", (addon, user, island) -> island == null ? "" : String.valueOf(user.getPermissionValue(addon.getPermissionPrefix() + "team.maxsize", addon.getPlugin().getIWM().getMaxTeamSize(addon.getOverWorld())))),
|
ISLAND_MEMBERS_MAX("island_members_max", (addon, user, island) -> island == null ? "" : String.valueOf(addon.getIslands().getMaxMembers(island, RanksManager.MEMBER_RANK))),
|
||||||
/**
|
/**
|
||||||
* Returns the amount of players that are at least MEMBER on this island.
|
* Returns the amount of players that are at least MEMBER on this island.
|
||||||
* @since 1.5.0
|
* @since 1.5.0
|
||||||
@ -234,7 +234,8 @@ public enum GameModePlaceholder {
|
|||||||
* @since 1.5.2
|
* @since 1.5.2
|
||||||
*/
|
*/
|
||||||
VISITED_ISLAND_MEMBERS_MAX("visited_island_members_max", (addon, user, island) ->
|
VISITED_ISLAND_MEMBERS_MAX("visited_island_members_max", (addon, user, island) ->
|
||||||
getVisitedIsland(addon, user).map(value -> String.valueOf(user.getPermissionValue(addon.getPermissionPrefix() + "team.maxsize", addon.getPlugin().getIWM().getMaxTeamSize(addon.getOverWorld())))).orElse("")),
|
getVisitedIsland(addon, user).map(value -> String.valueOf(addon.getIslands().getMaxMembers(value, RanksManager.MEMBER_RANK)))
|
||||||
|
.orElse("")),
|
||||||
/**
|
/**
|
||||||
* Returns a comma separated list of player names that are at least MEMBER on the island the player is standing on.
|
* Returns a comma separated list of player names that are at least MEMBER on the island the player is standing on.
|
||||||
* @since 1.13.0
|
* @since 1.13.0
|
||||||
|
Loading…
Reference in New Issue
Block a user