DiscordVerifier:守护你的 Minecraft 服务器!
DiscordVerifier 为 Minecraft 服务器管理员提供了一种便捷的方式,无需处理白名单的繁琐事宜,即可将服务器访问权限限制在特定人群内。
一些示例用例包括:为仅限赞助者加入的 Discord 服务器成员托管 Minecraft 服务器,或为学校社团使用。
使用方法
用户只需在 Discord 中使用 /verify {username} 命令并输入其 Minecraft 用户名,即可获得服务器访问权限。每个 Discord 用户只能绑定一个 Minecraft 账号。
DiscordVerifier 是一个纯服务端模组,因此加入运行 DiscordVerifier 的服务器无需对原版客户端进行任何更改。不支持在客户端安装此模组,否则可能导致数据丢失。
设置
下载对应版本的模组并将其放入服务器的 mods 文件夹中。
该模组依赖 Fabric API,请确保也已安装。
接下来,通过 Discord 开发者门户 注册一个新的 Discord 应用。
你可能希望将机器人设为私有,以防止服务器成员将其添加到你未运行的其他任意服务器中。
从 Bot 子部分复制机器人令牌(token),并将其粘贴到服务器的配置文件中。
在完成此操作之前,DiscordVerifier 将无法工作。在服务器运行且令牌有效之前,机器人在 Discord 上将显示为离线状态。
务必不要在任何他人可见的地方分享此令牌,否则任何人都可能接管你的机器人。
现在,用户必须在允许访问 Minecraft 服务器之前,在 Discord 服务器上使用 /verify {username} 命令完成验证。
有关配置和限制的更多详细信息,请参阅 GitHub README。
DiscordVerifier: Gatekeep your Minecraft server!
DiscordVerifier is a convenient way for Minecraft server admins to restrict access to a limited group of individuals without having to deal with the hassle of a whitelist.
Some example use cases include hosting a Minecraft server for members of a patrons-only Discord server, or for a school club.
Usage
For a user to gain access to the server, they simply need to use the /verify {username} Discord command with their Minecraft username. Each Discord user can only have one Minecraft account.
DiscordVerifier is a purely server-side mod, so no changes to the Vanilla client will be necessary to join a server running DiscordVerifier. Installing it on the client is unsupported and may cause data loss.
Setup
Download the appropriate mod version and place it in your server's mods folder.
The mod depends on the Fabric API, so be sure that is also installed.
Next, register a new Discord app through the Discord developer portal.
You may want to make the bot private, so that server members cannot add it to arbitrary other servers which you do not run.
Copy the bot token from the Bot subsection and paste it into the config file on the server.
Until you do this, DiscordVerifier will not work. The bot will appear as offline on Discord until the server is running and the token is valid.
Be sure never to share this token where anyone else can see it, or anyone will be able to take control of your bot.
Users will now be required to verify on the Discord server using the /verify {username} command before they are allowed to access the Minecraft server.
See the GitHub README for more details on configuration and limitations.
评论 0
登录后参与评分
还没有评论,来抢沙发吧