From af7ca9acef902952c459e8913c1a1f4c92532f99 Mon Sep 17 00:00:00 2001 From: 9378062 Date: Fri, 8 Apr 2022 09:43:23 -0400 Subject: [PATCH] tele was right...this was wrong... match mode now acts simply, as one may intially expect --- src/main/java/dev/plex/listener/impl/CommandListener.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/dev/plex/listener/impl/CommandListener.java b/src/main/java/dev/plex/listener/impl/CommandListener.java index 6051c28..1009f0e 100644 --- a/src/main/java/dev/plex/listener/impl/CommandListener.java +++ b/src/main/java/dev/plex/listener/impl/CommandListener.java @@ -52,7 +52,7 @@ public class CommandListener extends PlexListener } else if(blockedCommand instanceof MatchCommand matchCommand) { - if (message.equalsIgnoreCase(matchCommand.getMatch()) || message.toLowerCase().startsWith(matchCommand.getMatch().toLowerCase() + " ")) + if (message.toLowerCase().startsWith(matchCommand.getMatch().toLowerCase()) /*message.equalsIgnoreCase(matchCommand.getMatch()) || message.toLowerCase().startsWith(matchCommand.getMatch().toLowerCase() + " ")*/) { isBlocked = true; }