DCLink
DCLink 是一款 Minecraft 插件,允许你将 Minecraft 账号与 Discord 账号在服务器上进行绑定。默认情况下,只有已绑定的账号才能加入服务器,这意味着玩家必须拥有 Discord 账号才能在服务器上游玩。
玩家仅在首次加入时需要完成身份验证;此后,其信息将被添加到本地 SQLite 数据库中。
根据配置文件定义,一个 Discord 账号可以绑定到一个或多个 Minecraft 账号。
游戏内和 Discord 上均提供查询命令,用于查看哪些玩家绑定了哪些 Discord 账号,反之亦然。
兼容性
DCLink 兼容 Geyser & Floodgate,因此 Bedrock(基岩版)玩家可以使用与 Java 版玩家相同的认证系统。
命令
| 命令 | 描述 | 权限 | 平台 |
|---|---|---|---|
| /discord (player) | 发送你绑定的 Discord 账号 | dclink.command.discord | Minecraft |
| /unlink [player] | 移除 Minecraft 账号与 Discord 之间的绑定 | dclink.command.unlink | Minecraft |
| /alts [player] | 显示与同一 Discord 账号绑定的其他账号 | dclink.command.alts | Minecraft |
| /link | 发送你的绑定代码(仅当 require-link 关闭时注册) | dclink.command.link | Minecraft |
| /link [discordAccount] [minecraftAccount] | 手动将指定的 Discord 账号与 Minecraft 账号绑定 | 可在 Discords Integration 设置中更改(默认:仅限管理员) | Discord |
| /unlink [minecraftAccount] (discordAccount) | 移除与该 Discord 账号关联的所有(或指定)Minecraft 账号 | 可在 Discords Integration 设置中更改(默认:仅限管理员) | Discord |
| /lookup discord [discordAccount] | 显示所有绑定的 Minecraft 账号 | 可在 Discords Integration 设置中更改(默认:仅限管理员) | Discord |
| /lookup minecraft [minecraftName] | 显示绑定的 Discord 账号(如果有绑定) | 可在 Discords Integration 设置中更改(默认:仅限管理员) | Discord |
机器人设置
-
前往 Discord 开发者门户 并创建一个新的应用程序
-
点击 Bot 并创建一个新的机器人(点击 Reset Token 获取令牌,并将其放入配置文件中)
-
启用 Server Member's Intent(服务器成员意图)和 Message Content Intent(消息内容意图)
-
将机器人添加到你所在的 Discord 服务器(使用 applications.commands 作用域),并赋予其“Pin Messages”(固定消息)和“Send Messages”(发送消息)的权限。
-
创建/选择一个频道,让机器人在此发布消息。复制该频道的 ID 并将其放入配置文件中。
DCLink
DCLink is a Minecraft plugin that enables you to link your Minecraft and Discord accounts on a server. By default, only linked accounts can join, meaning players need a Discord account to play on the server.
Players only need to authenticate when they first join; after that, they are added to a local SQLite database.
As defined in the configuration file, a Discord account can be linked to one or more Minecraft accounts.
There are lookup commands both in-game and on Discord to see which players are linked to which Discord accounts, and vice versa.
Compatibility
DCLink is compatible with Geyser & Floodgate, so Bedrock players can use the same auth system as Java players.
Commands
| Command | Description | Permissions | Platform |
|---|---|---|---|
| /discord (player) | Sends you the linked Discord Account | dclink.command.discord | Minecraft |
| /unlink [player] | Remove link between the Minecraft account and Discord | dclink.command.unlink | Minecraft |
| /alts [player] | Shows alternative accounts linked with the same Discord account | dclink.command.alts | Minecraft |
| /link | Sends you your linking Code (Is only registered if require-link is off) | dclink.command.link | Minecraft |
| /link [discordAccount] [minecraftAccount] | Manually links a Discord account with the given Minecraft Account | Can be changed in Discords Integration settings (Default: Only Admins) | Discord |
| /unlink [minecraftAccount] (discordAccount) | Removes all (or the specified) linked Minecraft Account(s) with the given Discord Account | Can be changed in Discords Integration settings (Default: Only Admins) | Discord |
| /lookup discord [discordAccount] | Shows all linked Minecraft Accounts | Can be changed in Discords Integration settings (Default: Only Admins) | Discord |
| /lookup minecraft [minecraftName] | Shows the linked Discord Account (if any account is linked) | Can be changed in Discords Integration settings (Default: Only Admins) | Discord |
Bot Setup
-
Go to Discord's Developer Portal and create a new Application
-
Click on Bot and create a new Bot (Click on Reset Token to get the token and put it into the config file)
-
Enable Server Member's Intent and Message Content Intent
-
Add the Bot to your Discord guild (with the applications.commands scope) and give it permission to Pin Messages & Send Messages.
-
Create/Select a Channel where the Bot should post its message. Copy the Channel's ID and put it into the config.
下载 dclink
下载 dclink
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 dclink
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 dclink
下载 dclink
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 dclink
下载 dclink
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 dclink
下载 dclink
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 dclink
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
暂无更新日志
关于这个资源的讨论、问题反馈与使用心得
还没有讨论,来发第一帖吧
你是这个资源的作者?登录后可认领此资源。
相似资源
插件
PacketEvents 是一款专为 Minecraft Java 版打造的协议库,旨在简化数据包的处理与传输。
插件
ExyliaPlugins 的库。
插件
通过对话框或铁砧界面帮助你的 Anthme
插件
自定义你的Minecraft头像!
插件
重新定义服务器上的生物运输方式。使用高度可定制的口袋道具,安全地捕获、存储和释放任何实体。
插件
为基于 Spigot/Paper/Folia 的服务器添加对 Vivecraft 的支持
评论 0
登录后参与评分
还没有评论,来抢沙发吧