Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
d0by1 committed Nov 26, 2021
1 parent 79218d4 commit cd5c409
Showing 1 changed file with 4 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -269,11 +269,10 @@ private String getText(Player player, boolean update) {
if (!hasFlag(EnumFlag.DISABLE_PLACEHOLDERS)) {
string = PAPI.setPlaceholders(player, string);
}
playerTextMap.put(uuid, string
.replace("{player}", player.getName())
.replace("{page}", String.valueOf(hasParent() ? parent.getIndex() : 1))
.replace("{pages}", String.valueOf(hasParent() ? parent.getParent().size() : 1))
);
string = string.replace("{player}", player.getName())
.replace("{page}", String.valueOf(hasParent() ? parent.getIndex() + 1 : 1))
.replace("{pages}", String.valueOf(hasParent() ? parent.getParent().size() : 1));
playerTextMap.put(uuid, string);
}
// Replace Animations
if (!hasFlag(EnumFlag.DISABLE_ANIMATIONS)) {
Expand Down

0 comments on commit cd5c409

Please sign in to comment.