afk
how can I automatically give afk role by luckperms when server (I think essentials) recognizes a player as being afk and to loose that role when player is no longer afk
17 Replies
Using contexts
LuckPerms - A permissions plugin for Minecraft servers.
LuckPerms
LuckPerms is a permissions plugin for Minecraft servers. It allows server admins to control what features players can use by creating groups and assigning permissions.
How specifically do you do that?
Many plugins offer contexts specific for use with permissions like advancedban:banned (I am fairly sure this one exists), staff++:frozen or in this case, essentials:afk
For this setup, I would create a new group just called „afk“ or something.
Then you add the context „essentials:afk“ to the group
From now on, all permissions set in the group will only apply while the player is afk. You could now set it to inherit default or something but that wouldn’t be necessary as iirc permissions of other groups still apply (with some exceptions ofc)
The last thing you have to do is to set the priority over all groups you want to bypass because maybe you have a VIP group that has a „VIP“ Tag next to their name, but you obviously want it to say „AFK“ now instead of VIP. Now maybe you also have an Admin group that you don’t want to have their ADMIN Tag replaced by AFK so: %priority-vip% < %priority-afk% < %priority-admin%
I hope this is easy to understand and if not, lemme know
@Deathpacito hope this helped
Thanks for the ping, completely didn't notice the response
Nw
Man I hate autocorrect
Wait
Alright what about the actual execution of having the AFK tag apply after a period of time of inactivity?
Essentials only?
Wdym? If you are using essentials it automatically adds the afk context to a person
I was wondering if there was a method to have it work with solely luckperms on Forge
Hmm
Or Luckperms plus some light mod
Afaik you can only use the contexts provided, so smth that is in vanilla anyway or added by plugins/mods
It's been a playerbase request for a while and I only know of datapacks that do it, but they don't work with the luckperms role colours that we use
Yeah maybe I can find smth
Mod Loader/Version?
Wait you already said forge
But what version
Vault Hunters Forge 1.18.2
Try that one out?