From 6b1c9f0c0ef4016def9da438b810522c621d28fd Mon Sep 17 00:00:00 2001 From: cnaude Date: Sat, 18 Jul 2015 20:07:28 -0700 Subject: [PATCH] Add color support to game_command_usage. --- src/main/java/com/cnaude/purpleirc/IRCMessageHandler.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/main/java/com/cnaude/purpleirc/IRCMessageHandler.java b/src/main/java/com/cnaude/purpleirc/IRCMessageHandler.java index 850b764..def42e7 100644 --- a/src/main/java/com/cnaude/purpleirc/IRCMessageHandler.java +++ b/src/main/java/com/cnaude/purpleirc/IRCMessageHandler.java @@ -25,6 +25,7 @@ import java.util.Collections; import java.util.List; import java.util.regex.Matcher; import java.util.regex.Pattern; +import net.md_5.bungee.api.ChatColor; import org.bukkit.entity.Player; import org.pircbotx.Channel; import org.pircbotx.User; @@ -220,7 +221,8 @@ public class IRCMessageHandler { || gameCommand.matches(".*%ARG(\\d+)\\+%.*") || gameCommand.contains("%ARGS%")) { plugin.logDebug("GM BAIL: \"" + gameCommand.trim() + "\""); - ircBot.asyncIRCMessage(target, gcUsage); + ircBot.asyncIRCMessage(target, plugin.colorConverter.gameColorsToIrc( + ChatColor.translateAlternateColorCodes('&', gcUsage))); break gc_loop; } else { plugin.logDebug("GM: \"" + gameCommand.trim() + "\"");