From 732be0f24f2b41311db0b0e963b28fc3d18be35f Mon Sep 17 00:00:00 2001 From: ChomeNS <95471003+ChomeNS@users.noreply.github.com> Date: Sat, 1 Jul 2023 10:10:43 +0700 Subject: [PATCH] ez fix just check for uuid instead of username --- .../chayapak/chomens_bot/plugins/ChatCommandHandlerPlugin.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 0c5b137..c4f8c9a 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 @@ -33,7 +33,7 @@ public class ChatCommandHandlerPlugin extends ChatPlugin.Listener { private void listener (PlayerMessage message, boolean cspy) { try { - if (message.sender().profile().getName().equals(bot.username())) return; + if (message.sender().profile().getId().equals(bot.profile().getId())) return; } catch (Exception ignored) {} // kinda sus ngl final Component displayNameComponent = message.displayName();