mirror of
https://github.com/RayzsYT/ProAntiTab.git
synced 2026-11-26 18:39:43 -05:00
Improve Per-Server Group Check
This commit is contained in:
1 parent
3d0a0f70a3
commit
92a9744ccd
1 file changed
+9
-1
@@ -87,7 +87,15 @@ public class PermissionUtil {
|
||||
|
||||
return hasBypassPermission(targetObj)
|
||||
|| hasPermission(targetObj, "bypass." + command.toLowerCase())
|
||||
|| GroupManager.canAccessCommand(targetObj, command);
|
||||
|| GroupManager.canAccessCommand(targetObj, command, slash);
|
||||
}
|
||||
|
||||
public static boolean hasBypassPermission(Object targetObj, String command, boolean slash, String server) {
|
||||
command = Storage.Blacklist.convertCommand(command, false, true, slash);
|
||||
|
||||
return hasBypassPermission(targetObj)
|
||||
|| hasPermission(targetObj, "bypass." + command.toLowerCase())
|
||||
|| GroupManager.canAccessCommand(targetObj, command, slash, server);
|
||||
}
|
||||
|
||||
public static boolean hasBypassPermission(Object targetObj, String command) {
|
||||
|
||||
Reference in new issue
Block a user