v1.2.4: Fix colors, add Russian locale, remove update checker

- Fixed HEX color format conversion (&#RRGGBB -> <#RRGGBB>)
- Added full Russian translation (ru.yml)
- Added ru.yml to auto-copy on first run
- Removed UpdateChecker (old IP plugin remnant)
- Fixed Config.getChildren() deep parameter bug
- Updated plugin.yml version to use Gradle variable
This commit is contained in:
loki 2026-02-25 13:01:44 +01:00
parent 8aeb547897
commit 56bf11822e
7 changed files with 267 additions and 57 deletions

View file

@ -57,6 +57,9 @@ public class Strings {
*/
@NotNull
public static String colour(@NotNull String string) {
// Convert old hex format &#RRGGBB to MiniMessage format <#RRGGBB>
string = string.replaceAll("&#([0-9A-Fa-f]{6})", "<#$1>");
Component component = MINI_MESSAGE.deserialize(string); // sanitize input
return ChatColor.translateAlternateColorCodes(LegacyComponentSerializer.SECTION_CHAR, LEGACY_COMPONENT_SERIALIZER.serialize(component));