How to Set Up DiscordSRV on Your Minecraft Server

Learn how to link your Minecraft server chat to a Discord channel with DiscordSRV.

DiscordSRV syncs your Minecraft server chat with a Discord channel, letting players communicate across both platforms.

Setting Up DiscordSRV

Create a Discord bot

Go to discord.com/developers/applications, create a new application, go to the Bot section, and click Add Bot. Copy the bot token.

⚠️ Warning: Never share your bot token publicly. Anyone with it can control your bot.

Invite the bot to your Discord server

Under OAuth2 → URL Generator, select the bot scope and these permissions: Send Messages, Read Messages, Manage Messages, Embed Links. Open the generated URL to invite the bot.

Install DiscordSRV

Download DiscordSRV from SpigotMC, upload to /plugins/ via Files on the XGamingServer panel, and restart.

Configure the bot token

Go to Files, open plugins/DiscordSRV/config.yml, and set:

BotToken: "your-bot-token-here"

Set the channel ID

In Discord, enable Developer Mode (Settings → Advanced → Developer Mode). Right-click your chat channel and click Copy ID. Set it in the config:

Channels:
  global: "your-channel-id"

Restart your server

Restart and your Minecraft chat will now sync with Discord.

Features

  • Chat sync — Messages flow between Minecraft and Discord
  • Console channel — Optionally mirror console output to a Discord channel
  • Player list — Show online players in Discord
  • Account linking — Link Discord accounts to Minecraft usernames
  • Notifications — Join/leave/death messages in Discord

💡 Tip: Create a dedicated #minecraft-chat channel in Discord to keep game chat separate from general discussion.

See also: Installing Plugins

If you need help, join our Discord.

How is this guide?

40% Off — Limited TimeGet your Minecraft server todayInstant setup, DDoS protection, and 24/7 support included.
Get a Server

On this page