mirror of
https://github.com/EssentialsX/Essentials.git
synced 2025-03-29 06:55:46 +01:00
Move wildcard perm check to superperms handler, rather than being PEX specific.
This commit is contained in:
parent
9c9b2be011
commit
2864d0186c
@ -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…
Reference in New Issue
Block a user