Have you ever had that moment when you're trying to chat with someone over
DiscordSRV or
Discord Integration and you didn't realize they were AFK? This plugin was made from that very frustration. With very limited configuration, you can get a functional and simple Discord connection to notify you when someone goes AFK.
Setup
Setup is straightforward and painless, you just need to create a Discord webhook and put it into the plugin's config.yml, then run /reloadhook!
This plugin depends Essentials and uses its AFK system! It also connects with Essentials to ensure that users who are vanished don't send webhook messges (because that would reveal they're online).
How do I create a webhook?
On a Discord server where you have the "Manage Webhooks" permission, go to the channel you want to send the messages to, click the gear icon next to its name in the sidebar, then go to the Integrations tab and click Create Webhook. Configure the name and profile picture to be whatever you like, then copy the link and paste it into the config.yml.
If you need a profile picture, you can use this one!
Localisation
You can configure the AFK messages in the config.yml if you'd prefer them to be in a language other than English (or if you'd just like to change what they say).
Permissions
This plugin is very simple, so there are only two permissions:
afkwebhook.send (default: true) - Users with this permission will send webhook messages when they go AFK. You can revoke the permission using your permission manager if you'd rather some users not do this.
afkwebhook.reload (default: op) - Users with this permission can run /reloadhook to reload the config, and also will receive chat notifications if the webhook fails to fire for whatever reason (more detailed information on any failed send is logged in the console with information on how to fix it!)