bingus-auth
一款适用于 Minecraft 26.1 Fabric 服务器的简单、轻量级身份验证模组。
功能特性
- Java 玩家密码认证(采用 Argon2 哈希)
- 将未认证的玩家传送至可配置的出生点,以隐藏其真实坐标(自 1.0.0 版本起需编辑源代码)
- 在认证完成前拦截所有数据包(移动、聊天、交互等)
- 基于会话的状态管理,登出即注销认证
命令
| 命令 |
描述 |
/register <password> |
注册新账号 |
/login <password> |
登录账号 |
/l <password> |
/login 的别名 |
/deletepassword <username> |
(管理员)删除玩家的密码并将其踢出服务器 |
要求
- Minecraft 26.1
- Fabric Loader 0.18.5+
- Fabric API
- Fabric Language Kotlin
- Java 25
安装方法
将 jar 文件放入服务器的 mods/ 文件夹中。无需配置文件。主世界中的出生点默认坐标为 0, 400, 0,可在构建前通过修改 AuthConfig.kt 进行更改。
数据说明
玩家密码以 Argon2 哈希形式存储在 config/bingus-auth/data.json 文件中。请勿手动编辑此文件!
Floodgate / Geyser
基岩版玩家通过其 UUID 被识别(Floodgate 分配的 UUID 满足 mostSignificantBits == 0)。他们会自动获得认证,无需输入密码。
注意事项
- 本模组专为单一服务器设计,目前仍处于测试阶段
- 无配置文件图形界面,截至目前,如需更改设置,请编辑源代码并重新构建
贡献代码
这是一个开源项目,遵循 MIT 许可证。源码位于 此处。
bingus-auth
A simple, lightweight authentication mod for Minecraft 26.1 Fabric servers.
Features
- Password authentication for Java players (Argon2 hashing)
- Teleports unauthenticated players to a configurable spawn point to hide their real coordinates (as of 1.0.0 you need to edit the source)
- Blocks all packets (movement, chat, interactions) until authenticated
- Per-session state, logging out deauthenticates the player
Commands
| Command |
Description |
/register <password> |
Register a new account |
/login <password> |
Login to your account |
/l <password> |
Alias for /login |
/deletepassword <username> |
(Admin) Delete a player's password and kick them |
Requirements
- Minecraft 26.1
- Fabric Loader 0.18.5+
- Fabric API
- Fabric Language Kotlin
- Java 25
Installation
Drop the jar into your server's mods/ folder. No configuration file needed. Spawn coordinates default to 0, 400, 0 in the overworld and can be changed in AuthConfig.kt before building.
Data
Player passwords are stored in config/bingus-auth/data.json as Argon2 hashes. Do not edit this file manually!
Floodgate / Geyser
Bedrock players are detected by their UUID (Floodgate assigns UUIDs with mostSignificantBits == 0). They are automatically authenticated without needing a password.
Notes
- This mod is purpose-built for one server and is still in beta
- No config file UI, change settings by editing the source and rebuilding as of now
Contributing
This is a open sourced project under the MIT license. located here.
评论 0
登录后参与评分
还没有评论,来抢沙发吧