mirror of
https://github.com/EssentialsX/Essentials.git
synced 2024-12-23 01:27:40 +01:00
Fix a silly logic error when testing bukkit perms
This commit is contained in:
parent
d2d8d191da
commit
6efd3eaa27
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user