DiscordLogging makes it possible for you to log events such as join or quit players from your Minecraft Spigot server. Via Discord webhooks this is then sent to the channel of your choice.
Step 1: Download the plugin, drag it to the plugins folder and start or restart the server.
Step 2: Create a webhook in a Discord channel and copy the link.
Step 3: Now go to the config and enter the link you copied under "webhook_url". If necessary, activate or deactivate the webhooks in the config.
Step 4: Start or restart the server. Try one of the events if it worked.