Skip to content

Commit

Permalink
Fixed visitors count placeholder including vanished players
Browse files Browse the repository at this point in the history
  • Loading branch information
OmerBenGera committed Feb 26, 2022
1 parent e1b4b1d commit 381d541
Showing 1 changed file with 1 addition and 2 deletions.
Expand Up @@ -166,8 +166,7 @@ public abstract class PlaceholderHook {
.put("nether_unlocked", (island, superiorPlayer) -> island.isNetherEnabled() ? "Yes" : "No")
.put("end_unlocked", (island, superiorPlayer) -> island.isEndEnabled() ? "Yes" : "No")
.put("visitors_count", (island, superiorPlayer) -> {
return island.getAllPlayersInside().stream().filter(visitor ->
island.isVisitor(visitor, false)).count() + "";
return island.getIslandVisitors(false).size() + "";
})
.put("bank_limit", (island, superiorPlayer) -> StringUtils.format(island.getBankLimit()))
.put("bank_limit_format", (island, superiorPlayer) ->
Expand Down

0 comments on commit 381d541

Please sign in to comment.