From 31150abcb23ea0b335f4db8635e2047e132b4595 Mon Sep 17 00:00:00 2001 From: Aldin Date: Mon, 16 Jan 2023 22:03:30 +0100 Subject: [PATCH] fix: make sure that all tablist placeholders are replaced correctly (#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. --- .../platform/PlatformSyncProxyManagement.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/modules/syncproxy/src/main/java/eu/cloudnetservice/modules/syncproxy/platform/PlatformSyncProxyManagement.java b/modules/syncproxy/src/main/java/eu/cloudnetservice/modules/syncproxy/platform/PlatformSyncProxyManagement.java index 46e2855273..986a0ec6f1 100644 --- a/modules/syncproxy/src/main/java/eu/cloudnetservice/modules/syncproxy/platform/PlatformSyncProxyManagement.java +++ b/modules/syncproxy/src/main/java/eu/cloudnetservice/modules/syncproxy/platform/PlatformSyncProxyManagement.java @@ -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()); } } }