mirror of
https://github.com/TotalFreedomMC/TF-EssentialsX.git
synced 2025-02-14 13:13:24 +00:00
Read from group not user for setting superperms
This commit is contained in:
parent
6398626559
commit
73b5fe971f
2 changed files with 2 additions and 2 deletions
Binary file not shown.
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue