Fix mangled special characters

This commit is contained in:
Aust1n46 2020-06-22 18:12:14 -05:00
parent 88b348d12d
commit d8b35fdfb9

View File

@ -43,7 +43,7 @@ public class ChatListener implements Listener {
} }
// this event isn't always asynchronous even though the event's name starts with "Async" // this event isn't always asynchronous even though the event's name starts with "Async"
// blame md_5 for that one (<EFBFBD>_<EFBFBD>) // blame md_5 for that one (_)
@EventHandler(priority = EventPriority.HIGHEST, ignoreCancelled = true) @EventHandler(priority = EventPriority.HIGHEST, ignoreCancelled = true)
public void onAsyncPlayerChatEvent(AsyncPlayerChatEvent event) { public void onAsyncPlayerChatEvent(AsyncPlayerChatEvent event) {
event.setCancelled(true); event.setCancelled(true);
@ -464,7 +464,7 @@ public class ChatListener implements Listener {
String globalJSON = Format.convertToJson(mcp, format, chat); String globalJSON = Format.convertToJson(mcp, format, chat);
String consoleChat = format + chat; String consoleChat = format + chat;
String message = consoleChat.replaceAll("(<EFBFBD>([a-z0-9]))", ""); String message = consoleChat.replaceAll("(§([a-z0-9]))", "");
int hash = message.hashCode(); int hash = message.hashCode();
//Create VentureChatEvent //Create VentureChatEvent