Skip to main content

Discord Webhook Logging

In order to send your plugin logs to discord webhooks just do the following configuration in your plugins config.yml

  1. Go to your discord server and create a new webhook

Here's a tutorial on how you can make a discord webhook

  1. In the webhooks section of the configuration paste your webhook URL and change the enabled to true

It should now look something like this

If don't want to show IP or any other info of the player just remove the placeholder in the value to disable it. The embeds are now made fully configurable.

webhooks:
enabled: true
url: "WEBHOOK_URL"

join:
enabled: true
color: '0x4CAF50'
title: ✅ Player Connected
thumbnail: https://api.mineatar.io/face/{uuid}
footer: Joined the server
fields:
- name: Username
value: '{username}'
inline: false
- name: IP Address
value: '||{ip}||'
inline: false

leave:
enabled: true
color: '0xF44336'
title: ❌ Player Disconnected
thumbnail: https://api.mineatar.io/face/{uuid}
footer: Left the server
fields:
- name: Username
value: '{username}'
inline: false
- name: IP Address
value: '||{ip}||'
inline: false
  1. Restart your server

Configure which updates to receive in the settings section of the above config section.