mirror of
https://github.com/essentials/Essentials.git
synced 2025-08-13 18:14:38 +02:00
Fix a silly logic error when testing bukkit perms
This commit is contained in:
@@ -52,7 +52,7 @@ public class Group extends DataUnit implements Cloneable {
|
||||
/**
|
||||
* Is this a GlobalGroup
|
||||
*
|
||||
* @return
|
||||
* @return true if this is a global group
|
||||
*/
|
||||
public boolean isGlobal() {
|
||||
return (getDataSource() == null);
|
||||
|
@@ -766,7 +766,7 @@ public class AnjoPermissionsHandler extends PermissionsReaderInterface {
|
||||
// (Heroes).
|
||||
final Player player = user.getBukkitPlayer();
|
||||
//final Permission bukkitPerm = Bukkit.getPluginManager().getPermission(targetPermission);
|
||||
if (player != null && player.hasPermission(targetPermission)) {
|
||||
if ((player != null) && player.hasPermission(targetPermission)) {
|
||||
result.resultType = PermissionCheckResult.Type.FOUND;
|
||||
result.owner = user;
|
||||
return result;
|
||||
|
Reference in New Issue
Block a user