DiscordSRV moves the chat from the game to a Discord channel of your choice and back, shows players joining and leaving, and can even show the console. Setup takes about fifteen minutes, and most of that time you spend on the Discord website.
What you need
DiscordSRV is a plugin for Paper, Purpur and Spigot. The bot runs inside the Minecraft server, so you do not need separate hosting for it. The server only needs an internet connection, and our servers have one.
DiscordSRV does not work on Fabric, Forge or NeoForge. There the most popular choice is the Discord Integration mod (dcintegration), which does the same job.
Step 1: the bot on Discord
- Go to the Discord Developer Portal, create an application and open the Bot tab.
- Turn on two options in the Privileged Gateway Intents section: Server Members Intent and Message Content Intent. Without the second one the bot cannot see the content of messages from Discord.
- Click Reset Token and copy the token. It is the bot's password, do not show it to anyone.
- In the OAuth2 tab, generate an invite link with the
botscope and add the bot to your Discord server. - In Discord, turn on Developer Mode (Settings, Advanced), right-click the channel and choose Copy Channel ID.
Step 2: configuring the plugin
- Install DiscordSRV from Plugins and start the server once.
- Stop the server and open
plugins/DiscordSRV/config.ymlin Files. - Fill in three fields:
BotToken: "paste_your_token_here"
Channels: {"global": "123456789012345678"}
DiscordConsoleChannelId: "234567890123456789"
- Start the server. In the console you will see that the bot has connected, and a server start message appears in the channel.
You change the message text, the chat format and what gets sent to Discord in messages.yml in the same folder.
Linking accounts and non-premium servers
A player types /discord link in game, gets a code and sends it to the bot in a private message. From then on the game account is linked to the Discord account, which lets you, for example, give Discord roles based on in-game ranks.
If your server runs with online-mode=false, a player's UUID is derived from their name, so:
- changing the name breaks the link, and the account has to be linked again,
- without a login plugin anyone can join with someone else's name and take over their Discord link.
If you link accounts or give rewards for linking, install AuthMe or switch the server to premium mode in server.properties.
Common problems
- Messages from the game reach Discord, but nothing comes back from Discord: Message Content Intent is not turned on.
- The bot is offline: wrong token, or the token was reset after you pasted it. Copy a new one and restart the server.
- Nothing appears in the channel: wrong channel ID, or the bot is not allowed to write in that channel.
DiscordSRV runs on every plan of our Minecraft server hosting, since all servers have internet access.
FAQ
No. The bot runs inside the Minecraft server. You only need a bot token from the Discord Developer Portal and internet access on the server.
Most often the bot does not have Message Content Intent turned on in the Discord Developer Portal. After turning it on, restart the server.
Type /discord link in game and send the code you get to the bot in a private message on Discord.
Yes, but the player's UUID then depends on their name. Changing the name breaks the link, and without a login plugin someone can pretend to be another player by using their name.
No. Modded servers use the Discord Integration mod, which also connects the game chat with a Discord channel.
Your own Minecraft server
Plans from 3.79 € a month, set up in a few minutes and managed from one panel.

