Discord
(1.1.0+) FlareMessages can send joins, leaves, first joins and join milestones to a Discord channel, with the player's head as picture. No Discord bot needed: just a webhook.
Setup
- In Discord open the channel settings > Integrations > Webhooks > New Webhook.
- Click Copy Webhook URL.
- In
config.yml:
``yaml discord: enabled: true webhook-url: "https://discord.com/api/webhooks/..." ``
/fmes reloadand join the server: the message is in the channel.
The webhook link works like a password for that channel: never share it. FlareMessages never writes it in the console or in the logs.
Options
discord:
enabled: false
webhook-url: ""
username: "{player}"
avatar-url: "https://mc-heads.net/avatar/{player}/64"
embed-color: "#56CCF2"
join: "**{player}** joined the server ({online}/{max_online})"
quit: "**{player}** left the server"
first-join: ":tada: **{player}** joined for the first time! Player **#{join_number}**"
milestone: ":trophy: **{player}** is player **#{join_number}** of {server_name}!"
| Option | |
|---|---|
username | name shown on the message. {player} = the player's name, or e.g. "{server_name}" |
avatar-url | picture of the message (https). The default shows the head of the player: Discord loads it, your server doesn't download anything |
embed-color | color of the line on the left of the box, e.g. "#56CCF2". "" = a normal message without the box |
join / quit | text of a join / leave. "" = not sent |
first-join | sent instead of join the first time a player joins |
milestone | sent when a new player reaches a milestone number (also with milestones on in welcome.yml) |
- Texts use Discord markdown (
**bold**,*italic*, emoji like:tada:), not Minecraft colors. Color codes are removed by themselves. - Placeholders of the player work, PlaceholderAPI too. Names like
Steve_99are shown as they are (not in italic). - Players in vanish or with
flaremessages.silentare never sent, like in the game chat. - Nobody is ever pinged:
@everyone, roles and users in a text are not mentioned. - Messages are sent in the background, the server never waits for Discord. If Discord gets too many at once (many joins after a restart) a few are skipped for some seconds, with one line in the console.
- Wrong link? The console says so at start (
discord.webhook-url ... is not a Discord webhook link). A deleted webhook givesDiscord refused the webhook (HTTP 404).
Example without the box, with the server as name:
discord:
enabled: true
webhook-url: "https://discord.com/api/webhooks/..."
username: "{server_name}"
embed-color: ""
join: ":green_circle: {player} joined"
quit: ":red_circle: {player} left"Ultimo aggiornamento: