Switch Permission Check Method

This commit is contained in:
RayzsYT committed 2024-07-08 01:21:16 +02:00
1 parent b4e3f359e5
commit 3978ec5a1d
1 file changed
+1 -1
@@ -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);