mirror of
https://github.com/LuckPerms/LuckPerms.git
synced 2024-11-24 11:38:40 +01:00
Ensure expired permissions are removed when users/groups are loaded for commands
This commit is contained in:
parent
f6f9840eb7
commit
4631dcf857
@ -67,8 +67,10 @@ public class GroupMainCommand extends MainCommand<Group> {
|
|||||||
|
|
||||||
if (group == null) {
|
if (group == null) {
|
||||||
Message.GROUP_NOT_FOUND.send(sender);
|
Message.GROUP_NOT_FOUND.send(sender);
|
||||||
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
group.auditTemporaryPermissions();
|
||||||
return group;
|
return group;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -91,6 +91,7 @@ public class UserMainCommand extends MainCommand<User> {
|
|||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
user.auditTemporaryPermissions();
|
||||||
return user;
|
return user;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user