mirror of
https://github.com/LuckPerms/LuckPerms.git
synced 2024-12-28 03:57:36 +01:00
Apply single '*' wildcard
This commit is contained in:
parent
1e6f32bdc4
commit
c15727377b
@ -228,6 +228,13 @@ public abstract class PermissionHolder {
|
|||||||
Map<String, Boolean> perms = new HashMap<>();
|
Map<String, Boolean> perms = new HashMap<>();
|
||||||
|
|
||||||
for (Node node : getAllNodesFiltered(server, world, extraContext, includeGlobal, applyGroups)) {
|
for (Node node : getAllNodesFiltered(server, world, extraContext, includeGlobal, applyGroups)) {
|
||||||
|
if (plugin.getConfiguration().getApplyWildcards()) {
|
||||||
|
if (node.getPermission().equals("*") || node.getPermission().equals("'*'")) {
|
||||||
|
possibleNodes.forEach(n -> perms.put(n, true));
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
perms.put(node.getPermission(), node.getValue());
|
perms.put(node.getPermission(), node.getValue());
|
||||||
|
|
||||||
if (plugin.getConfiguration().getApplyShorthand()) {
|
if (plugin.getConfiguration().getApplyShorthand()) {
|
||||||
|
Loading…
Reference in New Issue
Block a user