Skip to content

Commit

Permalink
Added bank limit placeholders
Browse files Browse the repository at this point in the history
  • Loading branch information
OmerBenGera committed Jan 5, 2022
1 parent a9160be commit 713ae95
Showing 1 changed file with 3 additions and 0 deletions.
Expand Up @@ -145,6 +145,9 @@ public abstract class PlaceholderHook {
return island.getAllPlayersInside().stream().filter(visitor ->
island.isVisitor(visitor, false)).count() + "";
})
.put("bank_limit", (island, superiorPlayer) -> StringUtils.format(island.getBankLimit()))
.put("bank_limit_format", (island, superiorPlayer) ->
StringUtils.fancyFormat(island.getBankLimit(), superiorPlayer.getUserLocale()))
.build();

private static List<PlaceholdersProvider> placeholdersProviders;
Expand Down

0 comments on commit 713ae95

Please sign in to comment.