1
0
mirror of https://github.com/essentials/Essentials.git synced 2025-08-15 11:04:29 +02:00

Fix a silly logic error when testing bukkit perms

This commit is contained in:
ElgarL
2012-03-03 13:47:59 +00:00
parent 7b6d1b3226
commit 47a03a993c
2 changed files with 2 additions and 2 deletions

View File

@@ -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);

View File

@@ -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;