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

Read from group not user for setting superperms

This commit is contained in:
ElgarL
2011-09-16 20:15:25 +01:00
parent b47a0ba0c9
commit f270dd1a6b
2 changed files with 2 additions and 2 deletions

View File

@@ -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);
}