Apply single '*' wildcard

This commit is contained in:
Luck committed 2016-08-30 12:49:46 +01:00
1 parent 1e6f32bdc4
commit c15727377b
1 file changed
+7
@@ -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()) {