Chat integration with Discord
DiscordSRV on a Millida server: chat from the game to Discord and back, joins-quits and deaths, nickname linking, and donation roles.
Updated August 4, 2026
DiscordSRV connects your server chat to a Discord channel: messages flow both ways, and joins, quits, deaths and achievements land there too. Half of a server's community lives in exactly that channel.
Installation
- “Plugins and Mods” section → DiscordSRV → restart. The plugin will create
plugins/DiscordSRV/config.yml. - Create a bot: discord.com/developers → New Application → Bot tab → Reset Token, copy the token.
- In the same place, enable Message Content Intent and Server Members Intent — without them the bot won't see messages.
- On the OAuth2 tab → URL Generator, tick
botand the permissionsSend Messages,Read Message History,Manage Roles— then invite the bot to your server with the resulting link. - In
config.yml, fill inBotToken, and inChannels— the channel ID:
BotToken: "your-token"
Channels: {global: "123456789012345678"}
You get the channel ID by right-clicking the channel with Developer Mode enabled in Discord.
- Restart the server. The console should show
[DiscordSRV] Enabled.
The token is the bot's password. Don't put it in screenshots of logs: the config file ends up both in backups and in support conversations.
What to configure next
- What to forward: joins, quits, deaths, achievements — the
MessageJoinServerblock and its neighbours. Turn off anything you don't need with an empty value. - Message format —
DiscordChatChannelPrefixand the templates inmessages.yml. Prefixes from LuckPerms are pulled in automatically. - Console to a separate channel —
DiscordConsoleChannelId. Handy, but the channel must be private: everything is visible there, including commands with passwords. - Account linking: the player types
/discord link, gets a code and sends it to the bot. Once linked, you can grant Discord roles for server groups (GroupRoleSynchronizationGroupsAndRolesToSync) — that way a donation rank automatically colors the person in Discord.
Common problems
| Symptom | Cause |
|---|---|
| Bot is online, messages aren't going through | intents not enabled or wrong channel ID |
| Discord to game works, back doesn't | the bot can't see the channel: not enough permissions in the channel's permission settings |
Invalid token in the console | the token wasn't copied in full or was reset |
| Roles aren't granted | the bot's role has a lower priority than the role being granted — move the bot up in the role list |
Notifications from the panel
Don't confuse these with hosting notifications: Millida itself sends server crashes, plan expiry and task results — to Telegram or Discord, see Server notifications.
