Skip to content

Commit

Permalink
Fix issues with RGB color codes
Browse files Browse the repository at this point in the history
Closes #205
  • Loading branch information
BrainStone committed Sep 20, 2024
1 parent 7946ba6 commit 5c5a2ce
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -446,6 +445,6 @@ public static Predicate<BungeeChatAccount> 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));
}
}

0 comments on commit 5c5a2ce

Please # to comment.