将你的 Minecraft 聊天与 Discord 服务器上的频道相连。
这是什么?
Minecraft 与 Discord 之间的极简连接。所有功能均在你的服务器上本地运行,这意味着你完全独立于任何第三方 Discord 机器人和 API(当然,除了官方的 Discord 和 Mojang API)。
迄今为止,除了聊天镜像之外,唯一的其他主要功能是简单的(渐进式)账号绑定。更多未来功能和完善内容可在链接的问题追踪器中找到。
自定义选项:
- 自定义你的 Discord 机器人的外观
- 玩家互动:决定是否在未绑定账号的玩家加入后发送连接提醒。
- 可自定义死亡消息
- 渐进式白名单:决定是否只允许已经通过 Discord 半绑定账号的玩家加入。(如果你想让服务器仅对 Discord 服务器成员开放,这将非常有用)
- 决定是否将在在线状态下通过 Discord 断开的玩家踢出服务器。
- 你可以随意更改配置中的所有文本字段,从而无限制地更改语言。
- 如果你希望为服务器消息(如玩家加入和离开)设置头像,你可以在插件成功运行一次后,修改它创建的 Webhook。你可以在镜像频道设置中的“集成”选项卡下找到它。
为什么?
当在 Minecraft 服务器上游玩且无人在线时,这种感觉可能会强化“两周阶段已结束”的失落感。通过将 Minecraft 聊天与 Discord 连接,可以让整个社区更深入地参与游戏过程。绑定 Discord 用户与 Minecraft 玩家的次要功能可以使过渡更加顺畅。即使他们使用手机上的 Discord,也会让人感觉那些在 Discord 上发消息的人就在服务器中与你同在!
请持续关注画廊更新!图标也是临时制作的。
如何操作?(10分钟)
- 安装插件并启动服务器一次以生成默认配置
-
创建 Discord 应用程序
-
创建新应用程序(确保已登录)
- 生成并保存令牌(我听说你应该保密这个令牌)
-
配置应用程序
机器人选项卡
- 启用服务器成员意图
- 启用消息内容意图
- 根据需要设置横幅、名称和头像
安装选项卡
- 作用域:
applications.commands bot
- 权限:
Manage Webhooks Read Message History Send Messages
- 将应用程序添加到你的 Discord 服务器
-
从你的 Discord 服务器获取频道 ID
-
在 Discord 的用户设置中启用开发者模式
- 右键点击所需频道并点击“复制频道 ID”以找到你的频道 ID
- 进入配置文件并设置令牌和频道 ID
- 在配置文件中进一步自定义你的体验
- 准备就绪!
重要提示
- 请注意,任何有权访问配置文件的人都可以看到机器人令牌,从而拥有对该机器人的完全访问权限。
- 从 2.0 版本开始,配置文件中有 webhook 令牌和 ID 的字段。这些字段应保持为空,并将自动设置。
- 消息已格式化。更多信息请参阅 Discord(例如如果你想提及某个角色)和 Minimessage 文档。
常见问题
为什么文件体积这么大?
版本中提供的 JAR 文件是经过阴影处理的(shaded)。这意味着它们包含了插件运行所需的所有库。
机器人权限是做什么用的?
-
Manage Webhooks - 用于创建以自定义身份发送消息的 webhook。
-
Read Message History - 需要读取消息以便将其镜像到 Minecraft
-
Send Messages - 如果 webhook 离线,则需要向 Discord 发送消息
-
server members intent - 用于解析服务器的所有成员到内部名称缓存中,以便显示名称而不是 ID
-
message content intent - 用于读取消息内容以便将其镜像到 Minecraft
Entangle your Minecraft chat with a channel on your Discord Server.
What?
A barebones connection between Minecraft and Discord. Everything runs locally on your server, meaning you are completely independent of any 3rd Party Discord-Bots and APIs (except official Discord and Mojang API ofc).
So far the only other major feature except chat mirroring is simple (emergent) account linking. Some future features and completions can be found in the linked issue tracker.
Customization:
- Customize the Appearance of your Discord Bot
- Player Engagement: Decide whether to send a connection reminder to unlinked Players after joining.
- Customizable Death Messages
- Emergent Whitelist: Decide whether you only want to let players join that have already linked their account half-way from Discord. (Useful if you want a server to be private to your Discord Server)
- Decide whether players who disconnect via discord while online should be kicked.
- You can change all the Text fields in the config to your liking, thus making it possible to change the language without limits.
- If you want to set an Avatar for Server messages (like people joining and leaving), you can do so by running the plugin successfully once, and then changing the Webhook it has created. You find it under the settings of your mirror channel in the "Integrations" tab.
Why?
When playing on a Minecraft Server and no one is online, it can strenghten the feeling of "2 week phase is over". By linking your Minecraft chat to Discord, it can make the whole community more involved in the Gameplay. The secondary feature of linking Discord users to Minecraft players allows the transition to feel more smooth. It feels as if the people writing messages on Discord are right there with you on the server, even when they are using Discord from their phone!
Stay tuned for updates to the Gallery! The icon is also very improvised.
How? (10min)
- Install the plugin and start the server once to generate default config
-
Create the Discord Application
-
Create a new Application (make sure you are signed in)
- Generate and save the token (I have heard you are supposed to keep that one secret)
-
Configure the Application
Bot-Tab
- enable server members intent
- enable message content intent
- set Banner, Name and Avatar as you like
Installation Tab
- Scope:
applications.commands bot
- Permissions:
Manage Webhooks Read Message History Send Messages
- Add the Application to your Discord Server
-
Grab the Channel Id from your Discord Server
-
Enable Developer Mode in User settings on Discord
- Find your channel Id by right clicking the desired channel and clicking "Copy Channel Id"
- Go to the Config and set the Token and Channel Id
- Further Customize your experience in the Config
- You are ready to go!
Important Notes
- Be aware that anyone with access to the config file can see the bot-token and thus has full access to the bot.
- From 2.0 onwards there are config fields for the webhook token and id. Those should be left empty and will be set automatically.
- Messages are formatted. For more info look at the Discord (if you want to e.g. mention a role) and Minimessage docs.
FAQ
Why is the file size so large?
The jars provided in the versions are shaded. That means they contain all libraries that are needed for the plugin to work within.
What are the bot permissions for?
-
Manage Webhooks - Used to create the webhook that sends messages as custom identities.
-
Read Message History - Needed to read messages so they can be mirrored to Minecraft
-
Send Messages - Needed to send messages into Discord incase the webhook is offline
-
server members intent - Used to resolve all members of the server into the internal name cache so names can be displayed instead of ids
-
message content intent - Used to read the content of messages so they can be mirrored to Minecraft
评论 0
登录后参与评分
还没有评论,来抢沙发吧