From 6d20f543c833321176ecac899bbda4fa7d2ba5d5 Mon Sep 17 00:00:00 2001 From: CraftBukkit/Spigot Date: Wed, 10 Aug 2011 20:20:44 -0400 Subject: [PATCH] Added missed colors to ColouredConsoleSender. Thanks flames! By: EvilSeph --- .../command/ColouredConsoleSender.java | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) diff --git a/paper-server/src/main/java/org/bukkit/craftbukkit/command/ColouredConsoleSender.java b/paper-server/src/main/java/org/bukkit/craftbukkit/command/ColouredConsoleSender.java index 8bf86e0a11..4dabe6f03f 100644 --- a/paper-server/src/main/java/org/bukkit/craftbukkit/command/ColouredConsoleSender.java +++ b/paper-server/src/main/java/org/bukkit/craftbukkit/command/ColouredConsoleSender.java @@ -21,16 +21,20 @@ public class ColouredConsoleSender extends ConsoleCommandSender { this.terminal = reader.getTerminal(); replacements.put(ChatColor.BLACK, ANSICodes.attrib(0)); - replacements.put(ChatColor.RED, ANSICodes.attrib(31)); - replacements.put(ChatColor.DARK_RED, ANSICodes.attrib(31)); - replacements.put(ChatColor.GREEN, ANSICodes.attrib(32)); - replacements.put(ChatColor.DARK_GREEN, ANSICodes.attrib(32)); - replacements.put(ChatColor.YELLOW, ANSICodes.attrib(33)); - replacements.put(ChatColor.BLUE, ANSICodes.attrib(34)); replacements.put(ChatColor.DARK_BLUE, ANSICodes.attrib(34)); - replacements.put(ChatColor.LIGHT_PURPLE, ANSICodes.attrib(35)); + replacements.put(ChatColor.DARK_GREEN, ANSICodes.attrib(32)); + replacements.put(ChatColor.DARK_AQUA, ANSICodes.attrib(36)); + replacements.put(ChatColor.DARK_RED, ANSICodes.attrib(31)); replacements.put(ChatColor.DARK_PURPLE, ANSICodes.attrib(35)); + replacements.put(ChatColor.GOLD, ANSICodes.attrib(33)); + replacements.put(ChatColor.GRAY, ANSICodes.attrib(37)); + replacements.put(ChatColor.DARK_GRAY, ANSICodes.attrib(0)); + replacements.put(ChatColor.BLUE, ANSICodes.attrib(34)); + replacements.put(ChatColor.GREEN, ANSICodes.attrib(32)); replacements.put(ChatColor.AQUA, ANSICodes.attrib(36)); + replacements.put(ChatColor.RED, ANSICodes.attrib(31)); + replacements.put(ChatColor.LIGHT_PURPLE, ANSICodes.attrib(35)); + replacements.put(ChatColor.YELLOW, ANSICodes.attrib(33)); replacements.put(ChatColor.WHITE, ANSICodes.attrib(37)); }