From 5c5a2ceabbbeeaad6968976b73fdf7c3526da07a Mon Sep 17 00:00:00 2001 From: BrainStone Date: Fri, 20 Sep 2024 23:18:57 +0200 Subject: [PATCH] Fix issues with RGB color codes Closes #205 --- src/main/java/dev/aura/bungeechat/message/MessagesService.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/main/java/dev/aura/bungeechat/message/MessagesService.java b/src/main/java/dev/aura/bungeechat/message/MessagesService.java index 6665a719..68be443a 100644 --- a/src/main/java/dev/aura/bungeechat/message/MessagesService.java +++ b/src/main/java/dev/aura/bungeechat/message/MessagesService.java @@ -22,7 +22,6 @@ import java.util.stream.Stream; import lombok.Setter; import lombok.experimental.UtilityClass; -import net.md_5.bungee.api.ChatColor; import net.md_5.bungee.api.CommandSender; import net.md_5.bungee.api.chat.TextComponent; import net.md_5.bungee.api.config.ServerInfo; @@ -446,6 +445,6 @@ public static Predicate getNotIgnoredPredicate(BungeeChatAcco public static void sendMessage(CommandSender recipient, String message) { if ((message == null) || message.isEmpty()) return; - recipient.sendMessage(new TextComponent(ChatColor.translateAlternateColorCodes('&', message))); + recipient.sendMessage(TextComponent.fromLegacyText(message)); } }