LuckPerms

LuckPerms

41.4k Downloads

Add Consecutive Option for Parent AddTemp

Glac0 opened this issue ยท 1 comments

commented

Description

Please add an option to set parent temp groups to run consecutively based on group tracks.

Assume a track includes GroupA > GroupB > GroupC
The user gets parent addtemp GroupC for 20 days
The user then gets parent addtemp GroupB for 10 days

Currently GroupB will never be noticed as it's timer will be expired before GroupC (has priority) has expired.

Proposed behaviour

Adding a consecutive option would effectively pause the GroupB from being effective until GroupC has expired, at which point GroupB will be applied and start it's duration.

If GroupC is then added to the user again, GroupB would be removed/paused/uneffective until GroupC is expired again.

commented

Unfortunately, this is not how temporary permissions/groups work - they are based on an expiry time, not a duration.

Switching this to use durations is not in scope for the project at this time, sorry.