From 236afbdb5be1edeb613bada45fe7d7bee3d753bf Mon Sep 17 00:00:00 2001 From: Bram Date: Thu, 20 Jun 2024 21:49:27 +0200 Subject: [PATCH] Added: Message Coloring on non adventure platforms --- .../com/deathmotion/playercrasher/BukkitPlayerCrasher.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/platforms/bukkit/src/main/java/com/deathmotion/playercrasher/BukkitPlayerCrasher.java b/platforms/bukkit/src/main/java/com/deathmotion/playercrasher/BukkitPlayerCrasher.java index 402920e..9fb72cc 100644 --- a/platforms/bukkit/src/main/java/com/deathmotion/playercrasher/BukkitPlayerCrasher.java +++ b/platforms/bukkit/src/main/java/com/deathmotion/playercrasher/BukkitPlayerCrasher.java @@ -97,8 +97,7 @@ public void sendConsoleMessage(Component message) { if (useAdventure) { Bukkit.getConsoleSender().sendMessage(message); } else { - String legacyMessage = STRIP_COLOR_PATTERN.matcher(LegacyComponentSerializer.legacyAmpersand().serialize(message)).replaceAll("").trim(); - Bukkit.getConsoleSender().sendMessage(legacyMessage); + Bukkit.getConsoleSender().sendMessage(LegacyComponentSerializer.legacySection().serialize(message)); } }