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)); } }