diff --git a/src/main/java/org/polyfrost/hytils/handlers/chat/modules/modifiers/WhiteChat.java b/src/main/java/org/polyfrost/hytils/handlers/chat/modules/modifiers/WhiteChat.java index de78a43..07687f1 100644 --- a/src/main/java/org/polyfrost/hytils/handlers/chat/modules/modifiers/WhiteChat.java +++ b/src/main/java/org/polyfrost/hytils/handlers/chat/modules/modifiers/WhiteChat.java @@ -32,7 +32,7 @@ public class WhiteChat implements ChatReceiveModule { @Override public void onMessageReceived(@NotNull ClientChatReceivedEvent event) { final Matcher matcher = getLanguage().whiteChatNonMessageRegex.matcher(event.message.getFormattedText()); - if (matcher.find(0)) { + if (matcher.find(0) && !getLanguage().privateMessageWhiteChatRegex.matcher(event.message.getFormattedText()).find()) { boolean foundStart = false; for (IChatComponent sibling : event.message.getSiblings()) { if (sibling.getFormattedText().startsWith("ยง7: ")) foundStart = true;