Move wildcard perm check to superperms handler, rather than being PEX specific.

This commit is contained in:
KHobbits 2012-09-23 23:01:14 +01:00
parent 9c9b2be011
commit 2864d0186c
2 changed files with 5 additions and 1 deletions

View file

@ -66,7 +66,7 @@ public class PermissionsExHandler extends SuperpermsHandler
@Override
public boolean hasPermission(final Player base, final String node)
{
return base.hasPermission("*") || super.hasPermission(base, node);
return super.hasPermission(base, node);
}
@Override

View file

@ -33,6 +33,10 @@ public class SuperpermsHandler implements IPermissionsHandler
@Override
public boolean hasPermission(final Player base, final String node)
{
if (base.hasPermission("*"))
{
return true;
}
if (base.hasPermission("-" + node))
{
return false;