mirror of
https://github.com/EssentialsX/Essentials.git
synced 2024-12-23 09:37:50 +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
|
* Is this a GlobalGroup
|
||||||
*
|
*
|
||||||
* @return
|
* @return true if this is a global group
|
||||||
*/
|
*/
|
||||||
public boolean isGlobal() {
|
public boolean isGlobal() {
|
||||||
return (getDataSource() == null);
|
return (getDataSource() == null);
|
||||||
|
@ -766,7 +766,7 @@ public class AnjoPermissionsHandler extends PermissionsReaderInterface {
|
|||||||
// (Heroes).
|
// (Heroes).
|
||||||
final Player player = user.getBukkitPlayer();
|
final Player player = user.getBukkitPlayer();
|
||||||
//final Permission bukkitPerm = Bukkit.getPluginManager().getPermission(targetPermission);
|
//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.resultType = PermissionCheckResult.Type.FOUND;
|
||||||
result.owner = user;
|
result.owner = user;
|
||||||
return result;
|
return result;
|
||||||
|
Loading…
Reference in New Issue
Block a user