LuckPerms

LuckPerms

41.4k Downloads

Suggestion - addtemp command

blek-id opened this issue ยท 4 comments

commented

Hi there, I've been loving LP so far, and I have a suggestion for the devs. Can you please add a addtemp command so that we could add more time into a temp permission that already has a time? right now we only have settemp, where if we wanted to settemp the same permission, it doesn't do anything

commented

There is a setting in the config that defines, what LP should do, when you set the exact same temporary permissiion again.
Default is denying it, but there is an option, to actually let LP add the time to the remaining one.

https://github.com/lucko/LuckPerms/blob/2da6298c533445d766445c5ffd8660158f86fba3/bukkit/src/main/resources/config.yml#L250-L261

commented

Also you can append one of those keywords after the time to override the default behavior

commented

This is already possible with the following command:

/lp user <user> permission settemp <permission> <true/false> <duration> accumulate

Check the wiki next time ;)

commented

Oh my, I'm very sorry for not reading the wiki first haha. I thought by the name of the command "set" there wouldn't be any feature like that. Thanks for the help everyone!