mirror of
https://github.com/darksaid98/AntiCheatReloaded.git
synced 2026-12-03 14:38:46 +00:00
Reorder permissions so that debug shoes permission highest up in the tree
This commit is contained in:
1 parent
3517b6068a
commit
c1c4d689df
1 file changed
+1
-1
@@ -83,7 +83,7 @@ public enum Permission {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public String whichPermission(CommandSender cs) {
|
public String whichPermission(CommandSender cs) {
|
||||||
for (String s : new String[]{toString(), getBase(), PERMISSION_ALL}) {
|
for (String s : new String[]{PERMISSION_ALL, getBase(), toString()}) {
|
||||||
if (cs.hasPermission(s)) {
|
if (cs.hasPermission(s)) {
|
||||||
return s;
|
return s;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user