Discord: JustSync
如果你的机器人可见成员总数达到或超过 10,000 人,你需要通过 Discord 验证该机器人!
使用我们网站 tronka.de 上的脚本,轻松从 ErdbeerbaerLP's Discord Integration 迁移。
功能
- 将 Minecraft 聊天消息发送到 Discord
- 将 Discord 消息发送到 Minecraft 聊天
- 通过 Discord 角色自定义白名单
- 配置小号使用情况
- 支持 Webhook 和 Embed,可自定义消息格式
- 支持命令和命令日志记录
集成
该模组可以轻松与以下插件集成:
- Floodgate/Geyser
- Luckperms
- Vanish
更多详情请参阅我们的 wiki 页面。
配置
配置文件位于 <minecraft-folder>/config/discord-js/discord-justsync.toml,
首次启动时会自动创建。
要使用该模组,你必须配置 botToken 为你的 Discord 机器人令牌,并配置 serverChatChannel 为你希望用于 Minecraft 聊道的频道 ID。
否则,Minecraft 将无法启动。
Discord 机器人
机器人需要以下意图(Intents):SERVER_MEMBER、MESSAGE_CONTENT
以及以下权限:发送消息、查看频道、管理 Webhook、管理昵称、嵌入链接
有关更详细的分步教程,请参阅我们的 wiki 页面。
绑定
启用 linking.enableLinking 选项(默认值:true)后,玩家必须将其 Minecraft 账号绑定到 Discord 账号。
你可以通过配置 linking.requiredRoles 来设置加入服务器所需的角色 ID,从而控制哪些玩家可以加入。
默认情况下,每当玩家加入服务器时,其 Discord 账号名称将被更改为游戏内名称(linking.renameOnJoin)。
为此,需要拥有“管理角色”权限。
命令
Minecraft
/discord reload 重新加载配置
/discord unlink 解除你的 Minecraft 账号绑定
/discord unlink <player> 解除 Discord 用户与 Minecraft 账号的绑定(需要 OP 权限)
Discord
/link <code> 用于绑定到你的 Minecraft 账号
/justsync get 查询你自己的绑定数据
/justsync get <player> 查询其他玩家的绑定数据(需要“管理成员”权限)
/unlink 解除自己的绑定
/justsync unlink <player> 解除某玩家的绑定(需要“管理成员”权限)
/list 列出当前在线玩家
/reload 重新加载配置文件(仅限管理员)
问题、建议及一般性问题
如果你遇到任何问题或错误,有建议或对该模组有疑问,欢迎加入我们的 Discord 服务器。
Discord: JustSync
If your bot can see a total of 10k members or more you will need to verify the bot through discord!
Easily migrate from ErdbeerbaerLP's Discord Integration with Scripts on our Website tronka.de.
Features
- Send minecraft chat messages to discord
- Send discord messages to the minecraft chat
- Custom whitelisting through discord roles
- Configure alt account usage
- Webhook and Embed support with configurable message formats
- Commands and command logging support
Integrations
The mod easily integrates with:
- Floodgate/Geyser
- Luckperms
- Vanish
More on our wiki page
Config
The config file is located in <minecraft-folder>/config/discord-js/discord-justsync.toml,
it will be created on first launch.
To use the mod you must configure botToken with you discord bot token and
serverChatChannel with the id of the channel you want to use for the minecraft chat channel.
Without doing so minecraft will fail to start.
The Discord Bot
The bot will need following intents: SERVER_MEMBER, MESSAGE_CONTENT
and following permissions: Send Messages, View Channels, Manage Webhooks, Manage Nicknames, Embed Links
For a more detailed step-by-step tutorial refer to our wiki page.
Linking
By enabling the linking.enableLinking option (default: true) players will be required to link their minecraft account to a discord account.
You can control which players can join by configuring linking.requiredRoles with a role id required to join the server.
By default, a player's discord account will be renamed to their ingame name whenever they join (linking.renameOnJoin).
For this to work the manage roles permission is required.
Commands
Minecraft
/discord reload reload the configs
/discord unlink remove the link of your minecraft account
/discord unlink <player> remove a link from a discord user to a minecraft account (op required)
Discord
/link <code> used to link to your minecraft account
/justsync get query link data for yourself
/justsync get <player> query link data for other players (moderate member permission required)
/unlink unlink yourself
/justsync unlink <player> unlink a player (moderate members permission required)
/list List the currently online players
/reload reload the config file (admin only)
Problems, Suggestions and general Questions
If you encounter any problems or bugs, have a suggestion or have a question for this mod feel free please join our Discord Server.
评论 0
登录后参与评分
还没有评论,来抢沙发吧