Discord Bridge
StaffLink Pro mirrors staff chat to a Discord channel both ways: in-game staff chat appears in Discord, and messages typed in that Discord channel come back into in-game staff chat. You can connect it in one of two ways.
Choose a mode
| Mode | Use when | Needs |
|---|---|---|
discordsrv | You already run DiscordSRV | DiscordSRV installed; no extra bot or token |
bot | You don't use DiscordSRV | A Discord bot token of your own (StaffLink Pro connects directly) |
Set the mode with discord.mode. Both modes support the same two-way sync and the same formatting
options — only the connection differs.
Whichever mode you pick, enable discord.enabled on only one backend server. That server becomes
the bridge for the whole network; every other server relays its staff chat to it over the proxy, and
it forwards to Discord.
Mode 1 — DiscordSRV
Reuses DiscordSRV's existing bot, so there's no extra token, webhook or bot process to run.
- Install and configure DiscordSRV so its bot is online in your server.
- In DiscordSRV's
channelsconfig, add a channel entry — for example astaffkey pointing at your staff Discord channel's ID. - In StaffLink Pro's
config.yml, enable the bridge and point it at that channel:
discord:
enabled: true
mode: "discordsrv"
# Use either channel-key (recommended) or channel-id
channel-key: "staff"
channel-id: ""
allow-minecraft-to-discord: true
allow-discord-to-minecraft: true
ignore-bots: true
strip-markdown: false
username-format: "%nickname%"
messages:
to-discord-format: "**{server}** {player}: {message}"Mode 2 — Standalone bot (no DiscordSRV)
StaffLink Pro connects to Discord directly with its own bot token. Nothing else to install.
- Go to the Discord Developer Portal and create a New Application.
- Open the Bot tab, add a bot, and under Privileged Gateway Intents turn on the Message Content Intent. (Without it, Discord sends empty message text and the Discord→game direction won't work.)
- Copy the bot token (Reset Token if you've never seen it).
- Invite the bot to your server: on the OAuth2 → URL Generator tab tick
bot, give it the View Channel, Send Messages and Read Message History permissions, open the generated URL and add it to your server. - In Discord, enable Developer Mode (User Settings → Advanced), then right-click your staff channel → Copy Channel ID.
- Fill in
config.yml:
discord:
enabled: true
mode: "bot"
bot-token: "YOUR_BOT_TOKEN_HERE"
channel-id: "000000000000000000" # required in bot mode
allow-minecraft-to-discord: true
allow-discord-to-minecraft: true
ignore-bots: true
strip-markdown: false
username-format: "%nickname%"
messages:
to-discord-format: "**{server}** {player}: {message}"Your bot token is a password for the bot — anyone with it can control it. Don't share your
config.yml or paste the token anywhere public. If it leaks, reset it in the Developer Portal.
%role% renders Discord's role-coloured tag ([D-Admin], etc.) in discordsrv mode only. In
bot mode the author is shown with a plain [Discord] tag; the other name placeholders
(%nickname%, %sender%, %discord_tag%, %discord_id%) work in both modes.
What it looks like
Survival Nova: discord bridge is live
getting it over here 👍
Lobby Pike: replies come back in-game too
A message typed in the Discord channel appears in-game using the discord-format from
staff-chat:
Options explained
| Key | What it does |
|---|---|
mode | discordsrv (hook DiscordSRV) or bot (StaffLink Pro's own bot). |
bot-token | Bot mode only. Your Discord bot token. Keep it secret. |
channel-key | DiscordSRV mode only. The channel key from DiscordSRV's config. |
channel-id | The Discord channel ID. Required in bot mode, optional in DiscordSRV mode. |
allow-minecraft-to-discord | Send in-game staff chat to Discord. |
allow-discord-to-minecraft | Bring Discord messages into in-game staff chat. |
ignore-bots | Ignore messages from other bots in the Discord channel. |
strip-markdown | Remove Discord markdown (**bold**, etc.) before showing in-game. |
username-format | How a Discord author's name is shown: %nickname%, %sender%, %discord_tag%, %discord_id%, %role%. |
messages.to-discord-format | Layout of messages sent to Discord. Placeholders: {server}, {player}, {message}. |
The in-game appearance of Discord messages is set by staff-chat.discord-format
(placeholders {user}, {message}).