Guide · Plugins

DiscordSRV: connect your server to Discord

DiscordSRV mirrors chat between your Minecraft server and a Discord channel, posts joins, deaths and advancements, and can link accounts so Discord roles match in-game ranks. It keeps your community talking even when they are not online.

Step 1: create the Discord bot

In the Discord Developer Portal, create an application, add a bot, and copy its token. Under Privileged Gateway Intents, enable Server Members Intent and Message Content Intent; without them the bot connects but cannot read chat. Invite the bot to your Discord server with permission to read and send messages in the channels it uses.

Step 2: configure the plugin

Install DiscordSRV, start the server once to create plugins/DiscordSRV/config.yml, then stop it. Paste the bot token into BotToken. Turn on Developer Mode in Discord, right-click your chat channel, copy its ID and set it in the Channels setting, for example {"global": "123456789012345678"}.

Step 3: optional extras

  • DiscordConsoleChannelId: a private channel that shows the server console; staff only
  • Account linking with /discord link, then role syncing with LuckPerms groups
  • Custom message formats and embeds in messages.yml

Common problems

If messages go from Minecraft to Discord but not back, the Message Content Intent is off. If the bot never comes online, the token is wrong or was reset. If nothing posts, the channel ID is wrong or the bot cannot see the channel. The console prints a clear DiscordSRV error in each case.

Keep the console channel locked down. Anyone who can type there runs commands as the server.

StormNodes Minecraft hosting

Run it on a StormNodes server

Skip the port forwarding and the PC that has to stay on. A StormNodes Minecraft server is online in minutes, and everything in this guide can be done from the panel.

  • Hosted in Portugal, close to players across Western Europe
  • NVMe storage, monthly billing and no setup fee
  • Paper, Purpur, Fabric and vanilla, switchable from the panel
  • Live console, file manager, SFTP, backups and schedules
  • Support in English and Portuguese

FAQ

Frequently asked questions

Why does DiscordSRV not send Discord messages into Minecraft?
Enable the Message Content Intent for your bot in the Discord Developer Portal, then restart the server.
Is there a lighter alternative to DiscordSRV?
EssentialsX Discord covers chat relay and basic features with less configuration. DiscordSRV offers more, such as account linking and role sync.
Can I use one bot for several servers?
No. Install the plugin on each server, but never use the same bot token for more than one server. To share linked accounts across servers, connect the DiscordSRV instances to a MySQL database.