1
0
mirror of https://github.com/essentials/Essentials.git synced 2025-02-25 17:02:48 +01:00

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 ada750a2b3
commit 533f67a687
2 changed files with 5 additions and 1 deletions

View File

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

View File

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