DialogAuth
一款基于原生对话框窗口的现代、安全的 Minecraft 服务器身份验证系统。
即将支持 Forge 和 NeoForge
功能特点
✨ 原生对话框界面 - 利用 Minecraft 内置的对话框系统,提供简洁直观的身份验证体验
? 安全的密码存储 - 使用 BCrypt(成本因子 12)对密码进行哈希处理,确保最高级别的安全性
⏱️ 智能会话管理 - 玩家登录后保持在线状态 12 小时(可配置)
? 基于 IP 的安全机制 - IP 地址变更时自动重新进行身份验证
? 无缝游戏体验 - 玩家在身份验证期间被传送至虚空维度,验证完成后返回原位置
⚙️ 完全可配置 - 自定义会话时长、密码要求等更多设置
截图
工作原理
首次加入的玩家
- 玩家加入服务器
- 被传送至身份验证维度(虚空空间)
- 弹出注册对话框
- 输入两次密码以确认
- 自动返回出生点位置
回归玩家
- 12 小时内 + 相同 IP:即时登录,无需弹窗
- 超过 12 小时或不同 IP:弹出登录对话框
- 输入密码完成身份验证
- 返回您保存的位置
命令
/dialogauth changepass - 更改您的密码
/dialogauth reload - 重载配置(仅限管理员)
配置
位于 config/dialogauth/config.json:
{
"authentication": {
"min_password_length": 4,
"max_password_length": 32,
"session_duration_hours": 12,
"check_ip_address": true
}
}
关键设置
session_duration_hours - 玩家保持登录状态的时长(默认:12 小时)
check_ip_address - IP 变更时要求重新登录(默认:true)
min_password_length - 密码最小长度(默认:4)
本地化
在 config/dialogauth/lang.json 中自定义所有消息:
{
"command": {
"register": {
"success": "§a注册成功!"
},
"leave": {
"disconnect_message": "已断开连接"
}
}
}
对话框自定义
所有对话框均可在 config/dialogauth/dialogs/ 中进行自定义:
register/ - 注册对话框
login/ - 登录对话框
changepass/ - 修改密码对话框
注意:对话框更改需要重启服务器。
安全特性
✅ BCrypt 密码哈希(行业标准)
✅ 不存储明文密码
✅ 基于会话的身份验证
✅ IP 地址验证
✅ 可配置的密码要求
✅ 受保护的身份验证维度
依赖要求
- Minecraft 1.21.6+
- Fabric Loader
- Fabric API
安装步骤
- 下载模组
- 放入服务器的
mods 文件夹
- 启动服务器
- 配置文件将在
config/dialogauth/ 中自动生成
支持
发现 Bug 或有建议?请在 GitHub 上提交 Issue!
为 Minecraft 社区 ❤️ 制作
DialogAuth
A modern, secure authentication system for Minecraft servers using native dialog windows.
soon on forge and neoforge
Features
✨ Native Dialog Interface - Clean, intuitive authentication using Minecraft's built-in dialog system
? Secure Password Storage - Passwords are hashed using BCrypt (cost factor 12) for maximum security
⏱️ Smart Session Management - Players stay logged in for 12 hours (configurable)
? IP-Based Security - Automatic re-authentication when IP address changes
? Seamless Experience - Players spawn in a void dimension during authentication, then return to their exact location
⚙️ Fully Configurable - Customize session duration, password requirements, and more
Screenshots
How It Works
First Time Players
- Player joins the server
- Teleported to authentication dimension (void space)
- Registration dialog appears
- Enter password twice to confirm
- Automatically returned to spawn location
Returning Players
- Within 12 hours + Same IP: Instant login, no dialog
- After 12 hours OR Different IP: Login dialog appears
- Enter password to authenticate
- Return to your saved location
Commands
/dialogauth changepass - Change your password
/dialogauth reload - Reload configuration (admin only)
Configuration
Located in config/dialogauth/config.json:
{
"authentication": {
"min_password_length": 4,
"max_password_length": 32,
"session_duration_hours": 12,
"check_ip_address": true
}
}
Key Settings
session_duration_hours - How long players stay logged in (default: 12 hours)
check_ip_address - Require re-login when IP changes (default: true)
min_password_length - Minimum password length (default: 4)
Localization
Customize all messages in config/dialogauth/lang.json:
{
"command": {
"register": {
"success": "§aSuccessfully registered!"
},
"leave": {
"disconnect_message": "Disconnected"
}
}
}
Dialog Customization
All dialogs can be customized in config/dialogauth/dialogs/:
register/ - Registration dialogs
login/ - Login dialogs
changepass/ - Password change dialogs
Note: Dialog changes require server restart.
Security Features
✅ BCrypt password hashing (industry standard)
✅ No plaintext passwords stored
✅ Session-based authentication
✅ IP address verification
✅ Configurable password requirements
✅ Protected authentication dimension
Requirements
- Minecraft 1.21.6+
- Fabric Loader
- Fabric API
Installation
- Download the mod
- Place in your server's
mods folder
- Start the server
- Configuration files will be auto-generated in
config/dialogauth/
Support
Found a bug or have a suggestion? Open an issue on GitHub!
Made with ❤️ for the Minecraft community
评论 0
登录后参与评分
还没有评论,来抢沙发吧