Skip to content
Hosting · Plugins

DiscordSRV: detailed setup

Linking Minecraft and Discord chat: creating a bot, token, channels, webhooks, account linking, and giving roles for donations.

Updated August 13, 2026

DiscordSRV connects your server chat to a Discord channel: messages go both ways, and you get notifications about joins, deaths, and advancements.

Creating a bot

  1. Discord Developer Portal → New Application.
  2. Bot → Reset Token → copy the token.
  3. Enable Message Content Intent and Server Members Intent — without them the plugin won't see messages.
  4. OAuth2 → URL Generator → scope bot → permissions to read and send messages → invite it to your server.

Configuration

plugins/DiscordSRV/config.yml:

BotToken: "your_token"
Channels: {"global": "channel_ID"}
DiscordChatChannelMinecraftToDiscord: true
DiscordChatChannelDiscordToMinecraft: true

You get the channel ID with Developer Mode enabled in Discord: right-click the channel → “Copy ID”.

Linking accounts

/discord link

The player receives a code and sends it to the bot. Once linked, you can grant Discord roles for server groups and vice versa — this is the standard way to grant a donor role automatically.

What you must configure

ParameterWhy
Message filterSo that @everyone mentions from the game don't trigger
Message formatNickname, prefix, color
Console channelSeparate and private: everything is visible there, including commands

Security

The bot token is full access to the bot. Don't publish the config or show it in screenshots: a leaked token is reset in the developer portal.

A console channel with permission to enter commands is equivalent to access to the server. Keep it closed to everyone except the owner — Admin panel security.

Minecraft hostingYour server runs while you are offlineCreate server