mirror of
https://github.com/Xiao-MoMi/Custom-Nameplates.git
synced 2026-01-01 05:06:43 +00:00
2.0
This commit is contained in:
@@ -44,12 +44,7 @@ public class TextCache {
|
||||
}
|
||||
|
||||
private void analyze(String value) {
|
||||
List<String> placeholdersOwner = new ArrayList<>();
|
||||
for (String identifier : CustomNameplates.instance.getPlaceholderManager().detectPlaceholders(value)) {
|
||||
if (!identifier.startsWith("%rel_")) {
|
||||
placeholdersOwner.add(identifier);
|
||||
}
|
||||
}
|
||||
List<String> placeholdersOwner = new ArrayList<>(CustomNameplates.instance.getPlaceholderManager().detectPlaceholders(value));
|
||||
String origin = value;
|
||||
for (String placeholder : placeholdersOwner) {
|
||||
origin = origin.replace(placeholder, "%s");
|
||||
|
||||
Reference in New Issue
Block a user