TMDevelopmentTinulica & Maiky

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

  1. In Discord open the channel settings > Integrations > Webhooks > New Webhook.
  2. Click Copy Webhook URL.
  3. In config.yml:

``yaml discord: enabled: true webhook-url: "https://discord.com/api/webhooks/..." ``

  1. /fmes reload and 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
usernamename shown on the message. {player} = the player's name, or e.g. "{server_name}"
avatar-urlpicture of the message (https). The default shows the head of the player: Discord loads it, your server doesn't download anything
embed-colorcolor of the line on the left of the box, e.g. "#56CCF2". "" = a normal message without the box
join / quittext of a join / leave. "" = not sent
first-joinsent instead of join the first time a player joins
milestonesent 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_99 are shown as they are (not in italic).
  • Players in vanish or with flaremessages.silent are 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 gives Discord 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"

Last updated

Sign in

New here? Just enter your email: the account is created when you click the link. No password needed.

or

We send you a link that signs you in with one click. It works for new and existing accounts.

Sign in with a password instead

By continuing you accept the Terms & Conditions and the Privacy policy.

Staff: open “Sign in with a password instead” and type your username instead of the email. After the password we ask for your 2FA code.