More progress towards 1.6: add transient permissions

This commit is contained in:
Luck
2016-08-27 22:01:17 +01:00
Unverified
parent 2ea9b36c77
commit 2a305b1c55
17 changed files with 560 additions and 244 deletions
@@ -330,7 +330,7 @@ public abstract class User extends PermissionHolder implements Identifiable<UUID
*/
private List<String> getGroups(String server, String world, boolean includeGlobal) {
// Call super #getPermissions method, and just sort through those
Map<String, Boolean> perms = getPermissions(server, world, null, includeGlobal, null, true);
Map<String, Boolean> perms = exportNodes(server, world, null, includeGlobal, true, null);
return perms.keySet().stream()
.filter(s -> Patterns.GROUP_MATCH.matcher(s).matches())
.map(s -> Patterns.DOT.split(s, 2)[1])