mirror of
https://github.com/EssentialsX/Essentials.git
synced 2024-12-25 18:48:24 +01:00
Switch pex permissions checks to use superperms rather than direct api call.
This commit is contained in:
parent
44d8c85450
commit
16834d85c5
@ -496,7 +496,7 @@ public class EssentialsPlayerListener implements Listener
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@EventHandler(priority = EventPriority.LOWEST)
|
@EventHandler(priority = EventPriority.LOWEST, ignoreCancelled = true)
|
||||||
public void onInventoryClickEvent(final InventoryClickEvent event)
|
public void onInventoryClickEvent(final InventoryClickEvent event)
|
||||||
{
|
{
|
||||||
if (event.getView().getTopInventory().getType() == InventoryType.PLAYER)
|
if (event.getView().getTopInventory().getType() == InventoryType.PLAYER)
|
||||||
|
@ -66,7 +66,7 @@ public class PermissionsExHandler implements IPermissionsHandler
|
|||||||
@Override
|
@Override
|
||||||
public boolean hasPermission(final Player base, final String node)
|
public boolean hasPermission(final Player base, final String node)
|
||||||
{
|
{
|
||||||
return manager.has(base.getName(), node, base.getWorld().getName());
|
return base.hasPermission(node);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
Loading…
Reference in New Issue
Block a user