ez fix just check for uuid instead of username

This commit is contained in:
Chayapak 2023-07-01 10:10:43 +07:00
parent 2cd9ceca8c
commit 732be0f24f

View file

@ -33,7 +33,7 @@ public class ChatCommandHandlerPlugin extends ChatPlugin.Listener {
private void listener (PlayerMessage message, boolean cspy) { private void listener (PlayerMessage message, boolean cspy) {
try { 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 } catch (Exception ignored) {} // kinda sus ngl
final Component displayNameComponent = message.displayName(); final Component displayNameComponent = message.displayName();