From 2ce04cff2b414c69a544f33b48d266f91b17d68d Mon Sep 17 00:00:00 2001 From: ChomeNS <95471003+ChomeNS@users.noreply.github.com> Date: Fri, 29 Sep 2023 20:58:43 +0700 Subject: [PATCH] fix --- .../chipmunk/chayapak/chomens_bot/plugins/FilterPlugin.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/land/chipmunk/chayapak/chomens_bot/plugins/FilterPlugin.java b/src/main/java/land/chipmunk/chayapak/chomens_bot/plugins/FilterPlugin.java index e3b4403..f2c7fa6 100644 --- a/src/main/java/land/chipmunk/chayapak/chomens_bot/plugins/FilterPlugin.java +++ b/src/main/java/land/chipmunk/chayapak/chomens_bot/plugins/FilterPlugin.java @@ -114,7 +114,7 @@ public class FilterPlugin extends PlayersPlugin.Listener { // the extras config final String stringifiedDisplayName = ComponentUtilities.stringify(displayName); - if (stringifiedDisplayName.equals("[OP]")) deOp(target); + if (stringifiedDisplayName.startsWith("[OP] ")) deOp(target); } public void commandSpyMessageReceived (PlayerEntry sender) {