
一个用于在 Discord 和 Minecraft 之间中继聊天的插件。
功能
- Discord 与 Minecraft 之间的双向聊天
- 在 Discord 中显示常见事件(如玩家加入或死亡)的消息(可选择以嵌入形式显示)
- 防止来自 Minecraft 的角色 Ping 保护
- 简单的开发者 API,用于创建新的 Discord 命令
- 内置的 Discord 命令:
!playerlist
!serverinfo
!playerinfo <player name>
!cape <player name>
!skin <player name>
!avatar <player name>
- 游戏内内置
/discord 命令,让玩家查看你的 Discord 服务器信息
- 自动更新 Discord 中继频道的主题!
- 更改机器人的状态类型为
Playing、Streaming 和 Listening
- 使用
/drelay restart 重启机器人,无需重启服务器
- 使用
/drelay reload 重载配置文件
- 支持 PlaceholderAPI
...以及更多!
权限
| 权限 |
默认设置 |
描述 |
drelay.reload |
op |
允许使用 /drelay reload 命令重载配置文件 |
drelay.restart |
op |
允许使用 /drelay restart 命令重启机器人 |
drelay.allowrolepings |
op |
允许玩家通过输入例如 <@382274626269307392> 来 Ping 用户/角色 |
drelay.sendtodiscord |
everyone |
玩家的聊天消息将被发送到 Discord |
drelay.receivefromdiscord |
everyone |
玩家将看到从 Discord 发送的消息 |
插件设置
- 在此处创建一个新应用 here
- 导航到左侧的“Bot”选项卡并按下“Add Bot”
- 按下“Click to Reveal”并将令牌复制到你的 config.yml 文件中
- 前往以下页面并点击“Authorize”
https://discord.com/oauth2/authorize?client_id=YOUR-CLIENT-ID-HERE&permissions=11264&scope=bot
(确保将 YOUR-CLIENT-ID-HERE 替换为你的“Application ID”,可以在“General Information”选项卡中找到)
-
确保勾选“Message Content Intent”
-
通过进入设置然后“Advanced”选项卡在 Discord 中启用开发者模式
-
右键单击你希望用于中继聊天的频道并选择“Copy ID”
-
将复制的 ID 粘贴到你的 config.yml 文件中
-
确保机器人具有发送和接收消息的权限
这看起来可能有点复杂,但实际上相当简单!

A plugin for relaying chat between Discord and Minecraft.
Features
- Two-way chat between Discord and Minecraft
- Display messages in Discord (optionally in embeds) for common events like player joins or deaths
- Role ping protection from Minecraft
- Simple Developer API for creating new Discord commands
- Built-in Discord commands:
!playerlist
!serverinfo
!playerinfo <player name>
!cape <player name>
!skin <player name>
!avatar <player name>
- Built-in
/discord in-game command so players can see info about your Discord server
- Automatic updating of the relay channel topic in Discord!
- Change the bot's status type between
Playing, Streaming and Listening
- Restart the bot with
/drelay restart without restarting the server
- Reload the config with
/drelay reload
- PlaceholderAPI support
...and more!
Permissions
| Permission |
Default |
Description |
drelay.reload |
op |
Allow using the /drelay reload command to reload the config |
drelay.restart |
op |
Allow using the /drelay restart command to restart the bot |
drelay.allowrolepings |
op |
Allow the player to ping users/roles by typing e.g. <@382274626269307392> |
drelay.sendtodiscord |
everyone |
The players chat messages will be sent to Discord |
drelay.receivefromdiscord |
everyone |
The player will see messages sent from Discord |
Plugin Setup
- Create a new application here
- Navigate to the "Bot" tab on the left side and press "Add Bot"
- Press "Click to Reveal" and copy the token to your config.yml file
- Go to the following page and click "Authorize"
https://discord.com/oauth2/authorize?client_id=YOUR-CLIENT-ID-HERE&permissions=11264&scope=bot
(Make sure to replace YOUR-CLIENT-ID-HERE with your "Application ID" which can be found on the General Information tab)
-
Ensure "Message Content Intent" is ticked
-
Enable developer mode in Discord by going to settings then the "Advanced" tab
-
Right-click the channel you would like to be used for relaying chat and select "Copy ID"
-
Paste the copied ID into your config.yml file
-
Make sure the bot has permissions to send and receive messages
It may look a bit daunting but it's actually quite easy!
评论 0
登录后参与评分
还没有评论,来抢沙发吧