Apply single '*' wildcard

This commit is contained in:
Luck 2016-08-30 12:49:46 +01:00
parent 1e6f32bdc4
commit c15727377b
No known key found for this signature in database
GPG Key ID: EFA9B3EC5FD90F8B

View File

@ -228,6 +228,13 @@ public abstract class PermissionHolder {
Map<String, Boolean> perms = new HashMap<>();
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());
if (plugin.getConfiguration().getApplyShorthand()) {