From 3978ec5a1d393bcd227497aa0995b89ebd5c4fcc Mon Sep 17 00:00:00 2001 From: RayzsYT <51991564+RayzsYT@users.noreply.github.com> Date: Mon, 8 Jul 2024 01:21:16 +0200 Subject: [PATCH] Switch Permission Check Method --- src/main/java/de/rayzs/pat/utils/CommandsCache.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/de/rayzs/pat/utils/CommandsCache.java b/src/main/java/de/rayzs/pat/utils/CommandsCache.java index 07c3be83..0f7e6100 100644 --- a/src/main/java/de/rayzs/pat/utils/CommandsCache.java +++ b/src/main/java/de/rayzs/pat/utils/CommandsCache.java @@ -78,7 +78,7 @@ public class CommandsCache { permitted = Reflection.isProxyServer() && serverName != null ? !Storage.Blacklist.isBlocked(targetObj, command, !Storage.ConfigSections.Settings.TURN_BLACKLIST_TO_WHITELIST.ENABLED, serverName) - : PermissionUtil.hasBypassPermission(targetObj, command); + : PermissionUtil.hasBypassPermission(targetObj, command, false); if(useList && !permitted || !useList && permitted) continue; playerCommands.add(command);