mirror of
https://github.com/LuckPerms/LuckPerms.git
synced 2026-11-27 19:03:07 +00:00
Pre-compile patterns, add two new commands, check args before doing DB lookup, and limit group names slightly
This commit is contained in:
1 parent
d5a6a4261d
commit
42322ef932
18 files changed
+171
-35
No files matched your search
@@ -29,10 +29,10 @@ public class BungeeUser extends User {
|
||||
|
||||
// Clear existing permissions
|
||||
Collection<String> perms = new ArrayList<>(player.getPermissions());
|
||||
perms.stream().forEach(p -> player.setPermission(p, false));
|
||||
perms.forEach(p -> player.setPermission(p, false));
|
||||
|
||||
// Re-add all defined permissions for the user
|
||||
Map<String, Boolean> local = getLocalPermissions(getPlugin().getConfiguration().getServer(), null);
|
||||
local.entrySet().stream().forEach(e -> player.setPermission(e.getKey(), e.getValue()));
|
||||
local.entrySet().forEach(e -> player.setPermission(e.getKey(), e.getValue()));
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user