Fix a silly logic error when testing bukkit perms

This commit is contained in:
ElgarL 2012-03-03 13:47:59 +00:00
parent d2d8d191da
commit 6efd3eaa27
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;