mirror of
https://github.com/Aust1n46/VentureChat.git
synced 2025-05-22 18:09:06 +00:00
Fix mangled special characters
This commit is contained in:
parent
88b348d12d
commit
d8b35fdfb9
@ -43,7 +43,7 @@ public class ChatListener implements Listener {
|
||||
}
|
||||
|
||||
// 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)
|
||||
public void onAsyncPlayerChatEvent(AsyncPlayerChatEvent event) {
|
||||
event.setCancelled(true);
|
||||
@ -464,7 +464,7 @@ public class ChatListener implements Listener {
|
||||
|
||||
String globalJSON = Format.convertToJson(mcp, 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();
|
||||
|
||||
//Create VentureChatEvent
|
||||
|
Loading…
x
Reference in New Issue
Block a user