This is a simple Bukkit/Spigot/Paper plugin that publishes a message to a Discord Channel via Webhooks whenever a player leaves or joins the server.
Example:
Configuration
Run your minecraft Spigot, Bukkit, or Paper server once with the PlayerNotificationPlugin jar installed in the "plugins" folder. After it runs for the first time it will create the directory structure:
plugins/
PlayerNotificationPlugin/
config.yml
Open up config.yml
and edit, replacing WEBHOOK-URL-GOES-HERE with the webhook URL configured in Discord:
notifiers:
-
type: "webhook"
url: "WEBHOOK-URL-GOES-HERE"
leaveFormat: "%s left!"
joinFormat: "%s joined!"