Switch pex permissions checks to use superperms rather than direct api call.

This commit is contained in:
KHobbits 2012-09-20 20:21:45 +01:00
parent 44d8c85450
commit 16834d85c5
2 changed files with 2 additions and 2 deletions

View File

@ -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)
{
if (event.getView().getTopInventory().getType() == InventoryType.PLAYER)

View File

@ -66,7 +66,7 @@ public class PermissionsExHandler implements IPermissionsHandler
@Override
public boolean hasPermission(final Player base, final String node)
{
return manager.has(base.getName(), node, base.getWorld().getName());
return base.hasPermission(node);
}
@Override