Removed unused print statement

This commit is contained in:
Aust1n46 2020-07-30 17:48:43 -05:00
parent f072821244
commit 24f7c6b94a
2 changed files with 2 additions and 3 deletions

View File

@ -464,7 +464,6 @@ public class ChatListener implements Listener {
String globalJSON = Format.convertToJson(mcp, format, chat);
String consoleChat = format + chat;
System.out.println(consoleChat);
String message = consoleChat.replaceAll("(§([a-z0-9]))", "");
int hash = message.hashCode();

View File

@ -44,10 +44,10 @@ public class Format {
prefix = FormatStringAll(MineverseChat.chat.getPlayerPrefix(sender.getPlayer()));
suffix = FormatStringAll(MineverseChat.chat.getPlayerSuffix(sender.getPlayer()));
//Don't apply JSON if the prefix or suffix is just a color code
if(suffix.isEmpty() || (suffix.length() == 2 && suffix.substring(1).matches("[0-9a-fA-F"))) {
if(suffix.isEmpty() || (suffix.length() == 2 && suffix.substring(1).matches("[0-9a-fA-F]"))) {
suffix = "venturechat_no_suffix_code";
}
if(prefix.isEmpty() || (prefix.length() == 2 && prefix.substring(1).matches("[0-9a-fA-F"))) {
if(prefix.isEmpty() || (prefix.length() == 2 && prefix.substring(1).matches("[0-9a-fA-F]"))) {
prefix = "venturechat_no_prefix_code";
}
}