From 515893c25c6668855c1cdf07530de5bccdb64681 Mon Sep 17 00:00:00 2001 From: Martin Sulikowski Date: Wed, 7 Jan 2026 17:46:05 +0100 Subject: [PATCH] Fix case-insensitive rank name matching in format lookup --- .../formatter/config/PluginConfig.java | 19 +++++++++++++++---- 1 file changed, 15 insertions(+), 4 deletions(-) diff --git a/chatformatter-core/src/main/java/com/eternalcode/formatter/config/PluginConfig.java b/chatformatter-core/src/main/java/com/eternalcode/formatter/config/PluginConfig.java index 90ca6989..b957b805 100644 --- a/chatformatter-core/src/main/java/com/eternalcode/formatter/config/PluginConfig.java +++ b/chatformatter-core/src/main/java/com/eternalcode/formatter/config/PluginConfig.java @@ -51,7 +51,7 @@ public class PluginConfig implements ChatSettings, TemplateRepository { }) public String defaultFormat = "{displayname} » {message}"; @Description({ " ", "# Here you can set different formats for each rank.", - "# Remember! Rank name must be exactly the same as in you permission plugin configuration.", + "# Note: Rank name matching is case-insensitive (Elite, elite, ELITE will all match).", "# If player have more than one rank remember to correctly setup rank weight configuration" }) public Map format = new ImmutableMap.Builder() .put("default", "{member} &7$hoverName({displayname}) &8» {message} ") @@ -78,12 +78,11 @@ public class PluginConfig implements ChatSettings, TemplateRepository { .put("{privateMessage}", "Click to send private message") .build(); - @Description({ " ", "# This section is made for experienced users" , "# It is used to shorten the text even more and keep the clean file!" }) + @Description({ " ", "# This section is made for experienced users", "# It is used to shorten the text even more and keep the clean file!" }) public List