Remove ChatColor system - unified all color handling in GradientModule + fix color formats

This commit is contained in:
loki5512344 2025-12-31 14:29:49 +01:00
parent dbb6a61351
commit d8721138d9
9 changed files with 16 additions and 441 deletions

View file

@ -41,12 +41,11 @@ public final class ChatFormatter {
/* ===================== COLORS ===================== */
/**
* Конвертирует &#RRGGBB формат в MiniMessage <#RRGGBB> формат
* Возвращает строку как есть, так как теперь градиенты генерируются в MiniMessage формате
*/
public static String convertAllColors(String message) {
if (message == null) return "";
// Конвертируем &#RRGGBB в <#RRGGBB> для MiniMessage
return message.replaceAll("&#([0-9a-fA-F]{6})", "<#$1>");
return message;
}
/* ===================== EMOJIS ===================== */