Apply negated wildcards

This commit is contained in:
Luck 2016-09-13 17:23:16 +01:00
parent e7ca79d251
commit 3a0a89853f
No known key found for this signature in database
GPG Key ID: EFA9B3EC5FD90F8B

View File

@ -94,8 +94,11 @@ public class LPPermissible extends PermissibleBase {
}
if (plugin.getConfiguration().getApplyWildcards()) {
if (luckPermsPermissions.containsKey("*") || luckPermsPermissions.containsKey("'*'")) {
return Tristate.TRUE;
if (luckPermsPermissions.containsKey("*")) {
return Tristate.fromBoolean(luckPermsPermissions.get("*"));
}
if (luckPermsPermissions.containsKey("'*'")) {
return Tristate.fromBoolean(luckPermsPermissions.get("'*'"));
}
String node = "";