mirror of
https://github.com/cnaude/PurpleIRC-spigot.git
synced 2024-11-25 11:35:36 +01:00
Add color support to game_command_usage.
This commit is contained in:
parent
d667158aca
commit
6b1c9f0c0e
@ -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() + "\"");
|
||||
|
Loading…
Reference in New Issue
Block a user