TMDevelopmentTinulica & Maiky

Discord messages

(4.1.1+) FlareTokens can write in a channel of your Discord server when:

  • a timed sale starts (/tokens sale)
  • a booster for everyone starts (/tokens booster 2 1h)
  • a player buys something for at least purchase-min tokens

Setup

  1. In Discord open the channel settings → Integrations → Webhooks → New Webhook → Copy Webhook URL.
  2. In config.yml:
discord:
  enabled: true
  webhook-url: "https://discord.com/api/webhooks/123456789/abcdef..."
  # Name of the sender in Discord
  username: "FlareTokens"
  # Color of the side line of the message
  color: "#B57BFF"
  # A timed sale starts
  sale: true
  # A booster for everyone starts
  booster: true
  # A shop purchase of at least ... tokens. 0 = off
  purchase-min: 1000
  1. /tokens reload.

Keep the webhook address private: whoever has it can write in that channel. FlareTokens never writes it in the console, and only accepts real Discord webhook addresses.

Texts

In lang/en.yml → discord. **bold** works, Minecraft colors are removed.

discord:
  sale: "**{percent}% off** every price in the token shop for **{time}**!"
  sale-shop: "**{percent}% off** in the **{shop}** shop for **{time}**!"
  booster: "**{multiplier}x tokens** for everyone for **{time}**!"
  purchase: "**{player}** bought **{product}** for **{price} tokens**."

Leave a text empty ("") to never send that message.

Good to know

  • On a network only the server where the sale or booster was started sends the message, so it is not sent twice.
  • Mentions are blocked: a product called @everyone does not ping anyone.
  • Messages are sent in the background: if Discord is slow or down, the server does not wait.
  • If the webhook was deleted, the console says so once.

Actualizat ultima data pe

Autentificare

Esti nou? Scrie doar emailul: contul se creeaza cand apesi pe link. Nu ai nevoie de parola.

sau

Iti trimitem un link care te autentifica dintr-un click. Merge si pentru conturi noi, si pentru cele existente.

Autentifica-te cu parola
Ai uitat parola?

Continuand, accepti Termeni si conditii si Politica de confidentialitate.

Staff: deschide „Autentifica-te cu parola” si scrie numele de utilizator in loc de email. Dupa parola iti cerem codul 2FA.