mirror of
https://github.com/cnaude/PurpleIRC-spigot.git
synced 2024-12-01 14:33:23 +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++) {
|
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));
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user