Skip to content

Commit

Permalink
Added: Message Coloring on non adventure platforms
Browse files Browse the repository at this point in the history
  • Loading branch information
Bram1903 committed Jun 20, 2024
1 parent 7e64975 commit 236afbd
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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));
}
}

Expand Down

0 comments on commit 236afbd

Please sign in to comment.