mirror of
https://github.com/TotalFreedomMC/TF-EssentialsX.git
synced 2024-09-10 12:19:57 +00: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 a new issue