diff --git a/src/main/java/land/chipmunk/chipmunkmod/mixin/ChatScreenMixin.java b/src/main/java/land/chipmunk/chipmunkmod/mixin/ChatScreenMixin.java index 9b826e1..99829f9 100644 --- a/src/main/java/land/chipmunk/chipmunkmod/mixin/ChatScreenMixin.java +++ b/src/main/java/land/chipmunk/chipmunkmod/mixin/ChatScreenMixin.java @@ -30,7 +30,7 @@ public class ChatScreenMixin extends Screen { public void sendMessage(String chatText, boolean addToHistory, CallbackInfoReturnable cir) { final CommandManager commandManager = CommandManager.INSTANCE; - if (ChipmunkMod.CONFIG.bots.testbot.webhookUrl != null) { + if (ChipmunkMod.CONFIG.bots.testbot.webhookUrl != null && chatText.startsWith(ChipmunkMod.CONFIG.bots.testbot.prefix)) { ChipmunkMod.executorService.submit(() -> { final Webhook webhook = new Webhook(ChipmunkMod.CONFIG.bots.testbot.webhookUrl); webhook.setUsername("ChipmunkMod");