mirror of
https://github.com/LuckPerms/LuckPerms.git
synced 2024-11-24 11:38:40 +01:00
Fix ops not receiving all permission nodes
This commit is contained in:
parent
89ff4cfa40
commit
fc230291d3
@ -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))));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user