mirror of
https://github.com/lucko/LuckPerms.git
synced 2025-09-27 06:19:03 +02:00
Fix ops not receiving all permission nodes
This commit is contained in:
@@ -267,11 +267,11 @@ public class LPBukkitPlugin extends JavaPlugin implements LuckPermsPlugin {
|
|||||||
"luckperms." + e.getKey() + ".*", def,
|
"luckperms." + e.getKey() + ".*", def,
|
||||||
e.getValue().stream()
|
e.getValue().stream()
|
||||||
.map(tag -> "luckperms." + e.getKey() + "." + tag)
|
.map(tag -> "luckperms." + e.getKey() + "." + tag)
|
||||||
.collect(Collectors.toMap(s -> s, s -> false))
|
.collect(Collectors.toMap(s -> s, s -> true))
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
pm.addPermission(new Permission("luckperms.*", def, all.stream().collect(Collectors.toMap(s -> s, s -> false))));
|
pm.addPermission(new Permission("luckperms.*", def, all.stream().collect(Collectors.toMap(s -> s, s -> true))));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user