LuckPerms

LuckPerms

41.4k Downloads

Add optional time parameter to parent removetemp command

koca2000 opened this issue ยท 13 comments

commented

As it is possible to accumulate time of temp parent it would be useful to be able to remove part of the time of temp parent.

The command would look like this: /lp user parent removetemp [time]

commented

Have you tried adding a negative amount of time?

commented

I have. It says that player already temporarily inherits from that group.

commented

You have to tell the Command that you want to add the new amount to the current amount. That should be no different than adding an amount. Which can be done by simply adding accumulate right after the time.

commented

I am sorry, I forgot to add accumulate. Strange is that this command /lp user koca2000 parent addtemp vip -2m accumulate have added 2 minutes. Sorry for bad formatting. I am sending this message from phone.

commented

Worth a shot. Then it seems to be not possible at the moment and like a fair suggestion.

commented

Hello, is there anything new on this system? I think it's still important (automatic menu, need to remove time etc etc...), thank you.

commented

commented

unsettemp is kind counter intuitive. removetemp would be better I think. Maybe even just allow negative time values for addtemp

commented

unsettemp is the name of the previous command - I've just added an extra argument for duration ;)

commented

I look forward to this update! Thank you :D

commented

unsettemp is the name of the previous command - I've just added an extra argument for duration ;)

I am aware. But unset always meant removing a node, not modifying it. That's where I take issue. It's inconsistent with the other unsets.

commented

Hello
Have news ? thanks.

commented

When we place the order:
/lp user Extazii parent addtemp vip zddz20d accumulate

The plugin will not take into account the "-" and will add +20 minuts, I tested by putting any letter, for example:

/lp user Extazii parent addtemp vip zddz20d accumulate

he's still gonna add another 20 days.
if that helps.