mirror of
https://github.com/LuckPerms/LuckPerms.git
synced 2026-11-25 21:34:26 +00:00
Ensure expired permissions are removed when users/groups are loaded for commands
This commit is contained in:
2 files changed
+3
No files matched your search
+2
@@ -67,8 +67,10 @@ public class GroupMainCommand extends MainCommand<Group> {
|
||||
|
||||
if (group == null) {
|
||||
Message.GROUP_NOT_FOUND.send(sender);
|
||||
return null;
|
||||
}
|
||||
|
||||
group.auditTemporaryPermissions();
|
||||
return group;
|
||||
}
|
||||
|
||||
|
||||
@@ -91,6 +91,7 @@ public class UserMainCommand extends MainCommand<User> {
|
||||
return null;
|
||||
}
|
||||
|
||||
user.auditTemporaryPermissions();
|
||||
return user;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user