mirror of
https://github.com/essentials/Essentials.git
synced 2025-02-25 08:52:40 +01:00
Move wildcard perm check to superperms handler, rather than being PEX specific.
This commit is contained in:
parent
ada750a2b3
commit
533f67a687
@ -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
|
||||
|
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user