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
- Discord Developer Portal → New Application.
- Bot → Reset Token → copy the token.
- Enable Message Content Intent and Server Members Intent — without them the plugin won't see messages.
- 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
| Parameter | Why |
|---|---|
| Message filter | So that @everyone mentions from the game don't trigger |
| Message format | Nickname, prefix, color |
| Console channel | Separate 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.
