LuckPerms

LuckPerms

1M Downloads

Add a REPLACE_DURATION TemporaryNodeMergeStrategy

kyngs opened this issue ยท 1 comments

commented

Description

Hello, currently, the only ways to merge temporary nodes are:

  • Add new duration to the existing node
  • Replace existing if duration is longer
  • Fail

In my case, I'd like to shorten the expiration of my permission node, so I'd need a way to replace the existing duration.

Proposed Behaviour

Could you add a merge strategy that will replace the existing duration with the new one?

Extra Details

No response

commented

The simplest way to do this would be to remove the earlier node and add a new shorter one. Any reason you can't do that?