Fix permission lookups being case sensitive

This commit is contained in:
Luck
2016-09-26 18:52:01 +01:00
Unverified
parent e72d91503c
commit ab6b011225
6 changed files with 16 additions and 12 deletions
@@ -78,7 +78,7 @@ public class VaultPermissionHook extends Permission {
Map<String, Boolean> toApply = object.exportNodes(
new Contexts(context, includeGlobal, includeGlobal, true, true, true),
Collections.emptyList()
Collections.emptyList(), true
);
return toApply.containsKey(permission) && toApply.get(permission);
@@ -217,7 +217,7 @@ public class VaultPermissionHook extends Permission {
Map<String, Boolean> toApply = user.exportNodes(
new Contexts(context, includeGlobal, includeGlobal, true, true, true),
Collections.emptyList()
Collections.emptyList(), true
);
return toApply.entrySet().stream()
@@ -71,7 +71,8 @@ public class BukkitUser extends User {
plugin.getConfiguration().isApplyingGlobalGroups(),
plugin.getConfiguration().isApplyingGlobalWorldGroups()
),
Collections.emptyList()
Collections.emptyList(),
true
);
try {