Description

DiscordSync connects your Minecraft server to your Discord server. Two-way chat, live server status on your bot, account linking with an optional whitelist, and instant alerts when the server crashes or freezes.
It runs entirely on the server. Players don't install anything.
Minecraft 1.7.10 · Forge · Java 8 or newer · server-side only
Features
Chat
- Two-way chat. Minecraft ⇄ Discord, with clickable attachments, replies, and
@PlayerNameturning into a real Discord mention for linked players. Nobody can ever ping@everyone,@hereor roles through the bridge. - Webhook mode. Minecraft chat shows up in Discord under the player's own name with their head as the avatar. If the webhook is unavailable it falls back to normal bot messages on its own.
- Share your item. Type
[item]in chat. In game it becomes the item you're holding, and hovering it shows the game's own tooltip. In Discord it becomes[Diamond Sword]with a picture of the item and its tooltip, drawn the way Minecraft draws them. Modded tooltips include the name of the mod. - GT New Horizons item rendering. DiscordSync 0.4.1 improves previews for GregTech wrenches, GT++ and BartWorks blocks, and Tinkers' Construct tools. An optional icon pack provides captured sprites for GTNH 2.9.2 item variants that use custom client renderers. Install the icon pack
- Discord images on maps. Pictures posted in Discord get a clickable
[Map]next to them. One click puts the picture on a map in your inventory so you can look at it in game.
Monitoring
- Bot status and channel topic. Player count, TPS and uptime on the bot's status ("Playing 3/20 players online") and, if you like, in a channel's topic line.
- Crash detection. Reports in-game crashes with a crash report summary, plus servers that were killed or lost power (announced on the next start) and normal shutdowns.
- Freeze watchdog. Alerts when the server stops ticking, attaches the main thread's stack trace, and reports the recovery.
Players and access
- Player events. Join, leave, timeout, kick (with the reason), death messages and achievements, as plain messages or colored embeds. Every message is a template you can change.
- Account linking.
/discord linkin game ⇄/linkin Discord, started from either side. - Whitelist mode. Optionally only linked players, or linked players holding a given Discord role, may join.
- Slash commands.
/list,/status,/link,/unlink,/whois, and an opt-in, role-gated/console.
Easy to run
- Clickable config menu.
/discord configis an in-game editor. Every edit is validated, saved and applied immediately, with no restart. Editingconfig.ymlby hand is picked up automatically too.
Setup
1. Create the Discord bot
- Open the Discord Developer Portal, choose New Application, then Bot, and copy the token.
- On the same Bot page, turn on MESSAGE CONTENT INTENT. It's needed to read chat.
- Invite the bot with the scopes
botandapplications.commandsand the permissions View Channels, Send Messages, Embed Links and Read Message History. Optionally add Manage Webhooks (webhook mode), Manage Channels (channel topic) and Manage Roles (linked role). - In Discord, enable Developer Mode (Settings → Advanced) so you can Copy ID of your server and channel.
2. Install the mod
- Put the jar in your server's
modsfolder and start the server once.config/DiscordSync/config.ymlis created. - Set the token and the chat channel, in the file or in game:
/discord config set discord.token <token>
/discord config set discord.chat-channel-id <channel id>
On shared hosting, put the token in the DISCORDSYNC_TOKEN environment variable instead. It overrides the file and is
never written to it. Setting discord.guild-id makes slash commands appear instantly.
That's it. Changes apply straight away.
Commands
In game or from the console, /discord
| Command | Who | What it does |
|---|---|---|
/discord link [code] |
players | Start linking, or finish a link begun in Discord |
/discord unlink [player] |
players / admins | Remove your link (admins: someone else's) |
/discord map [id] |
players | Get the latest, or a specific, Discord image as a map item |
/discord whois <player> |
admins | Which Discord account a player linked |
/discord status |
admins | Connection, channel, webhook, linked accounts, item picture readiness and server state |
/discord reload |
admins | Re-read the config and restart the Discord connection |
/discord config |
admins | The interactive settings menu |
/discord config assets |
admins | Open the Textures settings |
/discord download-icons |
admins | Download and install the inventory icon pack on the server |
/discord help |
everyone | Lists the commands you may use |
"Admin" means the console, or operator level 3 or higher (general.admin-op-level).
In Discord: /list · /status · /link [code] · /unlink · /whois [user|player] · /console <command>
(off by default; enable it with commands.console-enabled and restrict it with commands.console-role-ids).
Account linking and whitelist mode
Linking works from either side. Run /discord link in game to get a code, then /link <code> in Discord. Or start in
Discord with /link and finish with /discord link <code> in game. Codes are single-use, expire after 10 minutes
by default, avoid look-alike characters, and wrong guesses are throttled.
linking.whitelist-mode picks how strict to be:
OFF: linking is optional.LINKED: only linked players can play. A new player is disconnected with a message containing their code, links in Discord, and rejoins.ROLE: linked and holding one oflinking.required-role-idsin your Discord server.
Operators and linking.bypass-players can bypass the check.
1.7.10 note: the join check runs right after login, so other players may briefly see the vanilla "joined the game" line for someone who is then turned away. DiscordSync never announces that player in Discord.
Good to know
- Item and map pictures use Minecraft's real textures. A server doesn't have them, so by default DiscordSync
downloads the official client jar for your Minecraft version once from Mojang's launcher servers (checked
against Mojang's SHA-1 and kept in
config/DiscordSync/assets/). On a server without internet access, turn that off withassets.download-client: falseand pointassets.resource-packsat a client jar or a texture pack. Until the textures are available, messages go out with just the item's name. - Map pictures are only fetched on request, from Discord's own CDN, capped by
images.max-size-mb, and asking for the same picture again reuses the finished map.
Troubleshooting
| Symptom | Fix |
|---|---|
| "a privileged intent is disabled" | Turn on MESSAGE CONTENT INTENT on the Bot page of the Developer Portal. |
| "token is invalid" | Copy the token again (Bot → Reset Token) and check that DISCORDSYNC_TOKEN isn't overriding it. |
| Slash commands don't show up | Invite the bot with the applications.commands scope and set discord.guild-id. |
| Chat from Discord is empty | Check the Message Content intent again, and that the bot can see the channel. |
[item] shows only the item name in Discord |
Check items.discord-images is enabled, then check Item pictures in /discord status and the server log for texture loading errors. |
| A modded item has a tooltip with no icon | Check items.render-icon is enabled and install the matching inventory icon pack. |
Missing modded item icons
On a GTNH 2.9.2 server, open Textures with /discord config assets and click Download inventory icons.
You can also run /discord download-icons in game or discord download-icons from the server console.
DiscordSync downloads the pack from GitHub and reloads the item textures. Check Item pictures in
/discord status, then share the item again.
If the server cannot reach GitHub, download the ZIP on another machine, copy it to
config/DiscordSync/assets/inventory-icons.zip without extracting it, and run /discord reload.
GTNH 2.9.2 inventory icon ZIP
For another modpack or version, set assets.inventory-icons-url to the direct HTTPS URL for a matching pack.
To switch packs, stop the server and move the old ZIP out of the assets folder before installing the new one.
Uncaptured damage values or NBT variants may still show only their tooltip.
More fixes are in the full troubleshooting guide. Found a
bug? Run /discord bugs in game or open an issue.
Links
Released under the MIT license.
