mirror of
https://github.com/essentials/Essentials.git
synced 2025-08-13 18:14:38 +02:00
remove bukkit perms check from checkUserPermission as it's performed in
checkFullUserPermission
This commit is contained in:
@@ -657,8 +657,6 @@ public class AnjoPermissionsHandler extends PermissionsReaderInterface {
|
||||
if (result.resultType.equals(PermissionCheckResult.Type.EXCEPTION) || result.resultType.equals(PermissionCheckResult.Type.FOUND)) {
|
||||
return true;
|
||||
}
|
||||
if ((Bukkit.getPlayer(user.getName()) != null) && (Bukkit.getPlayer(user.getName()).hasPermission(permission)))
|
||||
return true;
|
||||
|
||||
return false;
|
||||
}
|
||||
@@ -699,6 +697,7 @@ public class AnjoPermissionsHandler extends PermissionsReaderInterface {
|
||||
}
|
||||
}
|
||||
|
||||
// Check Bukkit perms to support plugins which add perms via code (Heroes).
|
||||
if ((Bukkit.getPlayer(user.getName()) != null) && (Bukkit.getPlayer(user.getName()).hasPermission(targetPermission))) {
|
||||
result.resultType = PermissionCheckResult.Type.FOUND;
|
||||
result.owner = user;
|
||||
|
Reference in New Issue
Block a user