mirror of
https://github.com/TotalFreedomMC/TF-EssentialsX.git
synced 2025-02-14 21:22:09 +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);
|
PermissionAttachment attachment = this.attachments.get(player);
|
||||||
|
|
||||||
User user = GroupManager.getWorldsHolder().getWorldData(world).getUser(player.getName());
|
User user = GroupManager.getWorldsHolder().getWorldData(world).getUser(player.getName());
|
||||||
List<String> permissions = user.getPermissionList();
|
List<String> permissions = user.getGroup().getPermissionList();
|
||||||
|
|
||||||
// clear permissions
|
// clear permissions
|
||||||
for (String permission : attachment.getPermissions().keySet()) {
|
for (String permission : attachment.getPermissions().keySet()) {
|
||||||
|
@ -136,7 +136,7 @@ public class BukkitPermissions {
|
||||||
permission = permission.substring(1); // cut off -
|
permission = permission.substring(1); // cut off -
|
||||||
value = false;
|
value = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!attachment.getPermissions().containsKey(permission)) {
|
if (!attachment.getPermissions().containsKey(permission)) {
|
||||||
attachment.setPermission(permission, value);
|
attachment.setPermission(permission, value);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue