Help with the API
Closed this issue ยท 2 comments
Hello,
i am trying to use the API but I don't know how to add a permission to a user + the permission should be timed to 24h.
Can anyone help me?
Thanks!
Have a look here: https://github.com/lucko/LuckPerms/wiki/Developer-API
Also the Javadocs are very helpful.
You can use the setExpiry
method to specify how long a permission should last for.
e.g. for your 24h example:
.setExpiry(24, TimeUnit.HOURS)
Everything else you need to know is covered on the wiki page linked by @BrainStone