diff options
author | ElgarL <ElgarL@palmergames.com> | 2011-09-16 20:15:25 +0100 |
---|---|---|
committer | ElgarL <ElgarL@palmergames.com> | 2011-09-16 20:15:25 +0100 |
commit | f270dd1a6b59b60c6505849716b0c4f4d6b15927 (patch) | |
tree | a5355d789ed295807c8d83e72ecf187b4010a0a8 /EssentialsGroupManager/src/org/anjocaido/groupmanager/permissions/BukkitPermissions.java | |
parent | b47a0ba0c9747e4dbc20affc2c89768c0c70c0c6 (diff) | |
download | Essentials-f270dd1a6b59b60c6505849716b0c4f4d6b15927.tar Essentials-f270dd1a6b59b60c6505849716b0c4f4d6b15927.tar.gz Essentials-f270dd1a6b59b60c6505849716b0c4f4d6b15927.tar.lz Essentials-f270dd1a6b59b60c6505849716b0c4f4d6b15927.tar.xz Essentials-f270dd1a6b59b60c6505849716b0c4f4d6b15927.zip |
Read from group not user for setting superperms
Diffstat (limited to 'EssentialsGroupManager/src/org/anjocaido/groupmanager/permissions/BukkitPermissions.java')
-rw-r--r-- | EssentialsGroupManager/src/org/anjocaido/groupmanager/permissions/BukkitPermissions.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/EssentialsGroupManager/src/org/anjocaido/groupmanager/permissions/BukkitPermissions.java b/EssentialsGroupManager/src/org/anjocaido/groupmanager/permissions/BukkitPermissions.java index 9e500b123..fe381c127 100644 --- a/EssentialsGroupManager/src/org/anjocaido/groupmanager/permissions/BukkitPermissions.java +++ b/EssentialsGroupManager/src/org/anjocaido/groupmanager/permissions/BukkitPermissions.java @@ -116,7 +116,7 @@ public class BukkitPermissions { PermissionAttachment attachment = this.attachments.get(player);
User user = GroupManager.getWorldsHolder().getWorldData(world).getUser(player.getName());
- List<String> permissions = user.getPermissionList();
+ List<String> permissions = user.getGroup().getPermissionList();
// clear permissions
for (String permission : attachment.getPermissions().keySet()) {
@@ -136,7 +136,7 @@ public class BukkitPermissions { permission = permission.substring(1); // cut off -
value = false;
}
-
+
if (!attachment.getPermissions().containsKey(permission)) {
attachment.setPermission(permission, value);
}
|