diff --git a/.idea/workspace.xml b/.idea/workspace.xml index ed2b1c4..eecd1ab 100644 --- a/.idea/workspace.xml +++ b/.idea/workspace.xml @@ -4,10 +4,8 @@ - - @@ -496,7 +492,9 @@ - diff --git a/src/main/java/land/chipmunk/chayapak/chomens_bot/plugins/ChatCommandHandlerPlugin.java b/src/main/java/land/chipmunk/chayapak/chomens_bot/plugins/ChatCommandHandlerPlugin.java index 18d45f2..4ce97da 100644 --- a/src/main/java/land/chipmunk/chayapak/chomens_bot/plugins/ChatCommandHandlerPlugin.java +++ b/src/main/java/land/chipmunk/chayapak/chomens_bot/plugins/ChatCommandHandlerPlugin.java @@ -32,6 +32,8 @@ public class ChatCommandHandlerPlugin extends ChatPlugin.ChatListener { public void commandSpyMessageReceived (PlayerMessage message) { listener(message, true); } private void listener (PlayerMessage message, boolean cspy) { + if (message.sender().profile().getName().equals(bot.username())) return; + final Component displayNameComponent = message.displayName(); final Component messageComponent = message.contents(); if (displayNameComponent == null || messageComponent == null) return;