Using PEX 1.15 and only as superpermsmanager to allow for use of the parent permission. Also changed the handling of money on faction leave as last player.

This commit is contained in:
Olof Larsson committed 2011-10-13 19:47:37 +02:00
1 parent 98260c75de
commit 88fe43d600
4 files changed
+38 -40

No files matched your search

@@ -53,7 +53,7 @@ public class PermUtil {
pex = PermissionsEx.getPermissionManager();
p.log("Will use this plugin for permissions: " + Bukkit.getServer().getPluginManager().getPlugin("PermissionsEx").getDescription().getFullName());
return;
}
}
if ( Bukkit.getServer().getPluginManager().isPluginEnabled("Permissions"))
{
@@ -89,7 +89,9 @@ public class PermUtil {
if (pex != null)
{
return pex.has((Player)me, perm);
//return pex.has((Player)me, perm);
// Since pex supports superperms we should use those instead.
return ((Player)me).hasPermission(perm);
}
if (perm2or3 != null)