跳到正文

Discord Syncer

作者:Nanoh

Share messages between your Minecraft and Discord servers!

收藏

介绍

中文介绍正在准备中,下面暂时显示原文。

Discord Syncer

Keeps your Minecraft server and Discord channel in sync. Players see Discord messages in-game, and Discord sees everything happening on the server.


Features

  • Minecraft chat → Discord channel
  • Discord channel → Minecraft chat
  • Player death messages posted to Discord (formatting codes stripped)
  • Player join/leave messages with live online count
  • Player advancement notifications
  • Server online/offline announcements
  • Server crash detection
  • /rcon slash command for running server commands from Discord (admin only)
  • Lycanites Mobs event notifications (configurable)
  • Scaling Health blight death notifications (configurable)
  • Configurable prefix color (16 colors)
  • Configurable message format
  • Server-side only, clients don’t need the mod installed

Setup

  1. Create a bot at discord.com/developers
  2. Under the Bot page, enable the Message Content Intent
  3. Invite the bot with Read Messages + Send Messages permissions
  4. Launch the server once to generate config/discordsyncer.cfg
  5. Fill in botToken and channelId, then restart

Configuration

Option Default Description
botToken — Your Discord bot token
channelId — ID of the channel to sync with
guildId — Your Discord server ID for instant slash command registration (optional)
mcToDiscordFormat **{player}**: {message} Format for MC → Discord messages
discordPrefix [Discord] Prefix shown in Minecraft chat
minecraftPrefix [Minecraft] Prefix shown in Discord
prefixColor purple Prefix color in Minecraft chat
showPlayerDeaths true Post death messages to Discord
showPlayerJoin true Post join messages to Discord
showPlayerLeave true Post leave messages to Discord
showAdvancements true Post advancement unlocks to Discord
announceServerStatus true Post online/offline to Discord
showExternalModEvents true Post Lycanites/Scaling Health events to Discord

Valid colors: black, dark_blue, dark_green, dark_aqua, dark_red, purple, gold, gray, dark_gray, blue, green, aqua, red, pink, yellow, white


Notes

Works on dedicated servers. If the bot connects but messages aren’t appearing, double-check that Message Content Intent is enabled on your bot’s settings page.

The /rcon slash command requires the Administrator permission in Discord. If you set guildId, the command registers instantly on that server. Leave it blank to register globally, which can take up to an hour to propagate.

常见问题

Discord Syncer 支持哪些 Minecraft 版本?

Discord Syncer 支持 Minecraft Java 版 1.12.2,可用的加载器:Forge。下载时注意选择和你游戏版本一致的文件。

Discord Syncer 怎么安装?

先用 PCL2 或 HMCL 启动器安装对应版本的 Forge,再把下载的 .jar 文件放进游戏目录的 mods 文件夹,重新启动游戏即可。开启了版本隔离的,mods 文件夹在 versions/版本名 下面。

评论

登录后评论和评分

Nanoh 的其他作品

查看全部 →