diff --git a/runelite-client/src/main/java/net/runelite/client/plugins/chatnotifications/ChatNotificationsPlugin.java b/runelite-client/src/main/java/net/runelite/client/plugins/chatnotifications/ChatNotificationsPlugin.java index 9bd84d297f..a73323e4a5 100644 --- a/runelite-client/src/main/java/net/runelite/client/plugins/chatnotifications/ChatNotificationsPlugin.java +++ b/runelite-client/src/main/java/net/runelite/client/plugins/chatnotifications/ChatNotificationsPlugin.java @@ -144,7 +144,7 @@ public class ChatNotificationsPlugin extends Plugin usernameReplacer = "" + username + ""; } - if (usernameMatcher != null) + if (config.highlightOwnName() && usernameMatcher != null) { Matcher matcher = usernameMatcher.matcher(messageNode.getValue()); if (matcher.find()) @@ -152,7 +152,7 @@ public class ChatNotificationsPlugin extends Plugin messageNode.setValue(matcher.replaceAll(usernameReplacer)); update = true; - if (config.highlightOwnName()) + if (config.notifyOnOwnName()) { sendNotification(event); }