Skip to content

Commit

Permalink
fix: make sure that all tablist placeholders are replaced correctly (#…
Browse files Browse the repository at this point in the history
…987)

### Motivation
The tablist placeholders in the syncproxy module correlate with the
placeholders of the bridge module.

### Modification
Added "perms_group_" as prefix to syncproxy placeholders that are related to
permission groups.

### Result
All placeholders are replaced correctly.
  • Loading branch information
0utplay authored Jan 16, 2023
1 parent e891c04 commit 31150ab
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -302,11 +302,11 @@ public boolean checkPlayerMaintenance(@NonNull P player) {
var group = this.permissionManagement.highestPermissionGroup(permissionUser);

if (group != null) {
input = input.replace("%prefix%", group.prefix())
.replace("%suffix%", group.suffix())
.replace("%display%", group.display())
.replace("%color%", group.color())
.replace("%group%", group.name());
input = input.replace("%perms_group_prefix%", group.prefix())
.replace("%perms_group_suffix%", group.suffix())
.replace("%perms_group_display%", group.display())
.replace("%perms_group_color%", group.color())
.replace("%perms_group_name%", group.name());
}
}
}
Expand Down

0 comments on commit 31150ab

Please sign in to comment.