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 | |
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')
-rw-r--r-- | EssentialsGroupManager/src/Changelog.txt | 3 | ||||
-rw-r--r-- | EssentialsGroupManager/src/org/anjocaido/groupmanager/permissions/BukkitPermissions.java | 3 |
2 files changed, 4 insertions, 2 deletions
diff --git a/EssentialsGroupManager/src/Changelog.txt b/EssentialsGroupManager/src/Changelog.txt index f4ba657e7..6015b470e 100644 --- a/EssentialsGroupManager/src/Changelog.txt +++ b/EssentialsGroupManager/src/Changelog.txt @@ -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.
\ No newline at end of file + - Reverted WorldHolder static change to maintain backward plugin compatibility.
+ - Update to handle 'getDescription().getPermissions(') returning a list (CB 1172).
\ No newline at end of file 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);
}
}
|