1
0
mirror of https://github.com/essentials/Essentials.git synced 2025-10-02 09:07:08 +02:00

Fixed an issue with superperms where plugins define perms with

inheritance after the root perms
This commit is contained in:
ElgarL
2011-10-01 11:22:19 +01:00
parent ab67d0e232
commit 0462026f33
3 changed files with 6 additions and 4 deletions

View File

@@ -93,7 +93,7 @@ public class BukkitPermissions {
manager.registerEvent(Event.Type.PLUGIN_DISABLE, serverListener, Event.Priority.Normal, plugin);
}
private void collectPermissions() {
public void collectPermissions() {
registeredPermissions.clear();
for (Plugin bukkitPlugin : Bukkit.getServer().getPluginManager().getPlugins()) {
for(Permission permission : bukkitPlugin.getDescription().getPermissions())
@@ -134,8 +134,8 @@ public class BukkitPermissions {
Boolean value;
for (Permission permission : registeredPermissions) {
value = worldData.getPermissionsHandler().checkUserPermission(user, permission.getName());
attachment.setPermission(permission, value);
if (value == true)
attachment.setPermission(permission, value);
}
// Add any missing permissions for this player (non bukkit plugins)