Skip to content
Hosting · Plugins

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

  1. “Plugins and Mods” section → DiscordSRV → restart. The plugin will create plugins/DiscordSRV/config.yml.
  2. Create a bot: discord.com/developers → New Application → Bot tab → Reset Token, copy the token.
  3. In the same place, enable Message Content Intent and Server Members Intent — without them the bot won't see messages.
  4. On the OAuth2 tab → URL Generator, tick bot and the permissions Send Messages, Read Message History, Manage Roles — then invite the bot to your server with the resulting link.
  5. In config.yml, fill in BotToken, and in Channels — 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.

  1. 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 MessageJoinServer block and its neighbours. Turn off anything you don't need with an empty value.
  • Message format — DiscordChatChannelPrefix and the templates in messages.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

SymptomCause
Bot is online, messages aren't going throughintents not enabled or wrong channel ID
Discord to game works, back doesn'tthe bot can't see the channel: not enough permissions in the channel's permission settings
Invalid token in the consolethe token wasn't copied in full or was reset
Roles aren't grantedthe 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.

Minecraft hostingYour server runs while you are offlineCreate server