描述
Simple Login 是一款轻量且安全的身份验证插件/模组,专为 Minecraft 服务器设计,支持 1.17–26.x 版本。它提供登录和注册系统,玩家必须使用 /register <密码> <密码> 进行注册,并使用 /login <密码> 登录后方可与服务器交互。在未完成身份验证之前,玩家将无法移动、操作物品栏、破坏或放置方块以及执行其他游戏内行为,从而有效防止未授权访问。
该插件使用 SQLite 进行数据存储,密码采用 BCrypt 哈希算法以确保账户处理的安全性。内置自动更新检查器,用于通知服务器管理员有关新版本的发布。
安全与认证功能
- 可选的 基于 TOTP 的双因素身份验证(支持 Google Authenticator)
- 全局双因素身份验证开关
- 必须使用
/2faconfirm <6位数字代码> 来确认并完成双因素身份验证设置
- 会话系统支持受信任 IP,以减少重复的身份验证器提示
- 最低密码长度要求为 8 个字符
- 登录前保护系统,具备完整的权限限制处理
账户管理
- 删除账户需要通过
/delacc confirm <密码|6位验证码> 进行确认
- 删除请求具有时效性,可能会过期
- 待处理的删除请求可以使用
/delacc cancel 取消
- 在玩家登录之前,
/delacc 命令将受到限制
- 对无效验证码、密码和过期请求提供详细的错误处理
管理员与实用命令
/changepass <玩家> <新密码>(仅限 OP,控制台支持包含权限控制)
/slreload 重新加载配置文件
/abortsession 强制终止会话并需要重新登录
- 带有可信 IP 处理功能的会话管理系统
配置与本地化
所有消息均可通过 config.yml 进行配置。
- 取消提示消息
- 超时处理
- 无效密码或两步验证(2FA)代码的响应
- 确认提示
- 使用说明
依赖要求
- ProtocolLib (软依赖;用于在日志中隐藏用户密码)
- 需要 Java 17 或更高版本
命令(未提及的部分)
/enable2fa
/disable2fa
Description
Simple Login is a lightweight and secure authentication plugin/mod designed for Minecraft servers, supporting versions 1.17–26.x. It provides a login and registration system where players must register using /register <password> <password> and log in using /login <password> before interacting with the server. Until authentication is completed, players are restricted from moving, interacting with their inventory, breaking or placing blocks, and performing other gameplay actions, ensuring protection against unauthorized access.
The plugin uses SQLite for data storage, with passwords hashed using BCrypt for secure account handling. An automatic update checker is included to notify server owners about new releases.
Security & Authentication Features
- Optional TOTP-based two-factor authentication (Google Authenticator support)
- Global toggle for 2FA
/2faconfirm <6-digit code> required to confirm and complete 2FA setup
- Session system with trusted IP support to reduce repeated authenticator prompts
- Minimum password length requirement of 8 characters
- Pre-login protection system with full restriction handling
Account Management
- Account deletion requires confirmation via
/delacc confirm <password|6-digit code>
- Deletion requests are time-limited and can expire
- Pending deletion requests can be cancelled using
/delacc cancel
/delacc is restricted until the player is logged in
- Detailed error handling for invalid codes, passwords, and expired requests
Admin & Utility Commands
/changepass <player> <newpass> for OPs (console support included with permission control)
/slreload reloads configuration files
/abortsession forces session termination and requires re-login
- Session management system with trusted IP handling
Configuration & Localization
All messages are configurable via config.yml.
- cancellation messages
- timeout handling
- invalid password or 2FA code responses
- confirmation prompts
- usage instructions
Requirements
- ProtocolLib (soft dependency; required to hide user passwords in logs)
- Java 17 or higher required
Commands (unmentioned)
/enable2fa
/disable2fa
评论 0
登录后参与评分
还没有评论,来抢沙发吧