Skip to content

Commit

Permalink
stop private messages from turning white
Browse files Browse the repository at this point in the history
  • Loading branch information
ImToggle committed Sep 2, 2024
1 parent 49f758b commit bbd379b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit bbd379b

Please sign in to comment.