9
0
mirror of https://github.com/Xiao-MoMi/Custom-Nameplates.git synced 2025-12-19 15:09:23 +00:00

add strip color codes support

This commit is contained in:
XiaoMoMi
2025-06-21 00:20:01 +08:00
parent e01dec757e
commit 3cbf4698ed
4 changed files with 17 additions and 2 deletions

View File

@@ -338,6 +338,7 @@ public abstract class ConfigManager implements ConfigLoader, Reloadable {
protected String configVersion;
protected float minPackVersion;
protected boolean stripChatColorTags;
/**
* Constructs a new {@code ConfigManager} for the specified {@code CustomNameplates} plugin instance.
@@ -478,6 +479,7 @@ public abstract class ConfigManager implements ConfigLoader, Reloadable {
otherActionBarStayTime = config.getInt("other-settings.other-actionbar-stay-time", 3000);
displaySystemChat = config.getBoolean("other-settings.display-system-actionbar", true);
hideTeamNames = config.getBoolean("other-settings.hide-team-names", true);
stripChatColorTags = config.getBoolean("other-settings.strip-chat-color-tags", false);
}
@Override
@@ -916,6 +918,10 @@ public abstract class ConfigManager implements ConfigLoader, Reloadable {
return instance.chatChatty;
}
public static boolean stripChatColorTags() {
return instance.stripChatColorTags;
}
/**
* Returns the configuration file at the specified path with a custom route separator.
*