Add support for ampersand color codes in say command.

This commit is contained in:
cnaude 2015-07-18 12:17:51 -07:00
parent 7996d0f966
commit ea3a0ae035

View File

@ -55,7 +55,8 @@ public class Say implements IRCCommandInterface {
for (int i = 3; i < args.length; i++) { for (int i = 3; i < args.length; i++) {
msg = msg + " " + args[i]; msg = msg + " " + args[i];
} }
plugin.ircBots.get(bot).asyncIRCMessage(channelName, msg.substring(1)); msg = plugin.colorConverter.gameColorsToIrc(ChatColor.translateAlternateColorCodes('&', msg.substring(1)));
plugin.ircBots.get(bot).asyncIRCMessage(channelName, msg);
} else { } else {
sender.sendMessage(plugin.invalidBotName.replace("%BOT%", bot)); sender.sendMessage(plugin.invalidBotName.replace("%BOT%", bot));
} }