- Update to handle 'getDescription().getPermissions(') returning a

list (CB 1172).
This commit is contained in:
ElgarL 2011-09-21 16:23:47 +01:00
parent de744fe9e2
commit ce8f05cd94
4 changed files with 4 additions and 2 deletions

View File

@ -12,4 +12,5 @@ v 1.1:
- Fixed BukkitPerms population. Wasn't correctly setting superperms.
- Push updates to superperms for all valid GM commands.
- All GroupManager commands issued by players are now echoed in the console.
- Reverted WorldHolder static change to maintain backward plugin compatability.
- Reverted WorldHolder static change to maintain backward plugin compatibility.
- Update to handle 'getDescription().getPermissions(') returning a list (CB 1172).

View File

@ -96,7 +96,8 @@ public class BukkitPermissions {
private void collectPermissions() {
registeredPermissions.clear();
for (Plugin bukkitPlugin : Bukkit.getServer().getPluginManager().getPlugins()) {
registeredPermissions.addAll(bukkitPlugin.getDescription().getPermissions());
for(Permission permission : bukkitPlugin.getDescription().getPermissions())
registeredPermissions.add(permission);
}
}

Binary file not shown.

Binary file not shown.