mirror of
https://github.com/LuckPerms/LuckPerms.git
synced 2024-11-30 22:53:27 +01:00
Possible fix for permissions not applying on BungeeCord
This commit is contained in:
parent
fc230291d3
commit
f28721e55a
@ -60,7 +60,15 @@ public class BungeeListener extends AbstractListener implements Listener {
|
|||||||
|
|
||||||
|
|
||||||
final String server = player.getServer() == null ? null : (player.getServer().getInfo() == null ? null : player.getServer().getInfo().getName());
|
final String server = player.getServer() == null ? null : (player.getServer().getInfo() == null ? null : player.getServer().getInfo().getName());
|
||||||
Map<String, Boolean> local = user.getLocalPermissions(plugin.getConfiguration().getServer(), server, null, Collections.singletonList(e.getPermission()));
|
Map<String, Boolean> local = user.exportNodes(
|
||||||
|
plugin.getConfiguration().getServer(),
|
||||||
|
server,
|
||||||
|
null,
|
||||||
|
plugin.getConfiguration().getIncludeGlobalPerms(),
|
||||||
|
true,
|
||||||
|
Collections.singletonList(e.getPermission())
|
||||||
|
);
|
||||||
|
|
||||||
for (Map.Entry<String, Boolean> en : local.entrySet()) {
|
for (Map.Entry<String, Boolean> en : local.entrySet()) {
|
||||||
if (en.getKey().equalsIgnoreCase(e.getPermission())) {
|
if (en.getKey().equalsIgnoreCase(e.getPermission())) {
|
||||||
e.setHasPermission(en.getValue());
|
e.setHasPermission(en.getValue());
|
||||||
|
Loading…
Reference in New Issue
Block a user