mirror of
https://github.com/cnaude/PurpleIRC-spigot.git
synced 2024-11-29 05:26:19 +01:00
Add support for ampersand color codes in say command.
This commit is contained in:
parent
7996d0f966
commit
ea3a0ae035
@ -55,7 +55,8 @@ public class Say implements IRCCommandInterface {
|
||||
for (int i = 3; i < args.length; 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 {
|
||||
sender.sendMessage(plugin.invalidBotName.replace("%BOT%", bot));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user