diff --git a/src/main/java/com/cnaude/purpleirc/Utilities/ChatTokenizer.java b/src/main/java/com/cnaude/purpleirc/Utilities/ChatTokenizer.java index b1206ac..9d8a1a8 100644 --- a/src/main/java/com/cnaude/purpleirc/Utilities/ChatTokenizer.java +++ b/src/main/java/com/cnaude/purpleirc/Utilities/ChatTokenizer.java @@ -506,7 +506,13 @@ public class ChatTokenizer { effectiveName = ""; } String translatedColor = DiscordSRV.getPlugin().getColors().get(hex); - String colorCode = ChatColor.translateAlternateColorCodes('&', translatedColor); + String colorCode; + try { + colorCode = ChatColor.translateAlternateColorCodes('&', translatedColor); + } catch (Exception ex) { + colorCode = ""; + plugin.logDebug(ex.getMessage()); + } if (colorCode == null) { colorCode = ""; }