diff options
author | ElgarL <ElgarL@palmergames.com> | 2011-09-21 16:23:47 +0100 |
---|---|---|
committer | ElgarL <ElgarL@palmergames.com> | 2011-09-21 16:23:47 +0100 |
commit | ce8f05cd940ee00c80f9e328f2785484172a1300 (patch) | |
tree | 9c1c44ce71a3b58cb1e564089118ecd4746338d5 /EssentialsGroupManager/src/org | |
parent | de744fe9e2d6e389b821dca5a3a9fab28d3be262 (diff) | |
download | Essentials-ce8f05cd940ee00c80f9e328f2785484172a1300.tar Essentials-ce8f05cd940ee00c80f9e328f2785484172a1300.tar.gz Essentials-ce8f05cd940ee00c80f9e328f2785484172a1300.tar.lz Essentials-ce8f05cd940ee00c80f9e328f2785484172a1300.tar.xz Essentials-ce8f05cd940ee00c80f9e328f2785484172a1300.zip |
- Update to handle 'getDescription().getPermissions(') returning a
list (CB 1172).
Diffstat (limited to 'EssentialsGroupManager/src/org')
-rw-r--r-- | EssentialsGroupManager/src/org/anjocaido/groupmanager/permissions/BukkitPermissions.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/EssentialsGroupManager/src/org/anjocaido/groupmanager/permissions/BukkitPermissions.java b/EssentialsGroupManager/src/org/anjocaido/groupmanager/permissions/BukkitPermissions.java index 97695ffdb..ec6fcebca 100644 --- a/EssentialsGroupManager/src/org/anjocaido/groupmanager/permissions/BukkitPermissions.java +++ b/EssentialsGroupManager/src/org/anjocaido/groupmanager/permissions/BukkitPermissions.java @@ -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);
}
}
|