# Discord Webhook and Debug

### config.yml

What does each setting do:

* debug: This setting enables the plugin to send detailed logs to the server console.
* url: Enter the link of the webhook you created in the channel you want to use.
* avatar-url: If you want to set an avatar for the webhook, enter the avatar’s link here.
* username: The visible username of the webhook created in the Discord channel you want to use. You can write anything you want.
* log-messages: Specifies the messages that will be sent to the Discord channel when a player levels up, loses a level, has their level set, or their rank changes. You can customize them as you wish.

{% hint style="info" %}
Do not change the texts enclosed in <> symbols, these are placeholders being used!
{% endhint %}

```yml
debug: true
discord-hook: # discord hook configuration
  url: ""
  avatar-url: ""
  username: "RxyLevel"
  log-messages:
    add-level: "added <level> to <player>, new level <new_level>"
    remove-level: "deleted <level> to <player>, new level <new_level>"
    set-level: "set level to <level> for <player>"
    rank-change: "<player>'s rank changed to <rank>"
```
