mirror of
https://github.com/LuckPerms/LuckPerms.git
synced 2026-11-25 06:24:40 +00:00
Add wildcard permissions
This commit is contained in:
25 files changed
+265
-107
No files matched your search
@@ -282,7 +282,7 @@ public class Group extends PermissionHolder {
|
||||
*/
|
||||
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);
|
||||
Map<String, Boolean> perms = getPermissions(server, world, null, includeGlobal, null);
|
||||
return perms.keySet().stream()
|
||||
.filter(s -> Patterns.GROUP_MATCH.matcher(s).matches())
|
||||
.map(s -> Patterns.DOT.split(s, 2)[1])
|
||||
|
||||
Reference in new issue
Block a user