dclink
Minecraft Plugin for linking Minecraft Accounts with Discord Accounts using a Discord Bot
介绍
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 支持哪些 Minecraft 版本?
dclink 支持 Minecraft Java 版 1.7.2–26.1,共 80 个版本,可用的加载器:Fabric / Folia / NeoForge / Paper / Purpur / Quilt / Velocity。下载时注意选择和你游戏版本一致的文件。
dclink 怎么安装?
先用 PCL2 或 HMCL 启动器安装对应版本的 Fabric / Folia / NeoForge / Paper / Purpur / Quilt / Velocity,再把下载的 .jar 文件放进游戏目录的 mods 文件夹,重新启动游戏即可。开启了版本隔离的,mods 文件夹在 versions/版本名 下面。运行环境:仅服务端。
评论
登录后评论和评分