Sol 的 AuthLogin 系统
概览
Sol’s AuthLogin 是一个专为 Minecraft 服务器设计的强大且安全的身份验证系统,现已升级为采用 基于令牌的自动登录系统,从而提升安全性与玩家体验。
注意:必须安装到服务器的 mods 文件夹中,并建议同时在客户端安装以启用自动登录功能及稳定的认证状态限制。
需要帮助、想要提议新功能或发现了 Bug?
加入我们的社区,在更新正式生效前抢先获取独家预览和最新变更日志!
? 主要特性
? 基于令牌的安全自动登录
- 用 安全令牌认证系统 取代过时的基于 IP 的会话
- 玩家在
/login 或 /register 后获得一个 唯一登录令牌
- 支持后续加入时 安全无缝的自动登录
- 若未安装客户端模组则回退至手动登录
✔ 需同时在客户端和服务端安装模组以实现完整功能
? 核心认证系统
/register <password> <confirm> — 创建新账号
/login <password> — 验证老玩家身份
/change_password <old> <new> <confirm> — 安全更新凭证
? 高级安全功能
- 使用每用户唯一盐值的 SHA-256 密码哈希
- 速率限制 以防止暴力破解登录尝试
- 失败尝试后 临时锁定账号(可配置)
- 多会话防护(一个账号 = 一名玩家)
- 可选的 会话缓存回退 以兼容旧环境
? 严格的预认证保护
在玩家完成认证之前,将受到完全限制:
- 禁止移动(冻结状态)
- 禁止破坏或放置方块
- 禁止访问物品栏或容器
- 禁止拾取物品
- 禁止战斗交互
- 禁止聊天(仅允许认证相关指令)
- 禁止使用命令(仅允许
/login 和 /register)
- 禁止切换视角
⏱ 智能超时系统
- 可配置的 登录超时及自动踢出
- 登录后传送前的 宽限期
- 按可配置间隔显示操作栏提示 + 标题提醒
? 出生点与返回系统
- 可选的 加入时传送至出生点
- 登录后自动将玩家返回至 原始位置
- 防崩溃的位置持久化存储
- 支持 世界出生点或自定义坐标
? 管理员命令 (/auth_admin)
reload — 重新加载配置
resetpassword <player> <newPassword> — 重置玩家密码
unregister <player> — 移除玩家账号
forcelogin <player> — 手动认证玩家
forcelogout <player> — 注销玩家
info <player> — 查看认证状态
list — 列出所有已注册玩家
⚙ 高度可配置
- 认证超时与会话设置
- 密码规则(长度、复杂度、要求)
- 完全自定义的消息文本
- 灵活的出生点/传送行为
? 适用对象
✅ 适用于离线模式(盗版)服务器
- 无 Mojang 认证 → 任何人都可使用任意用户名
- 防止 账号冒充与破坏行为
- 确保只有注册用户才能访问其账号
- 对于保护玩家进度和数据至关重要
⚠ 在线模式服务器注意事项
- Mojang 已验证玩家身份与 UUID
- 不存在冒充风险
- 使用此模组可能导致 双重认证(Mojang + 模组)
? 仍然可以使用,但通常 除非需要额外的安全层,否则显得多余
? 为何选择 Sol’s AuthLogin?
- 有效防御常见漏洞利用
- 通过自动登录提供流畅的玩家体验
- 专为稳定性、可配置性及真实服务器环境而构建
作者: Solmochi
发现 Bug 或有建议?欢迎留言!我会尽快回复 :)
Sol's AuthLogin System
Overview
Sol’s AuthLogin is a powerful and secure authentication system designed for Minecraft servers, now upgraded with a modern token-based auto-login system for improved security and player experience.
Note: Required to install into server/mods folder and is recommended to be installed on client-side as well for auto-login feature & stable authstate restrictions.
Need help, want to suggest a feature, or found a bug?
Join our community to catch exclusive early previews and upcoming changelogs before they go live!
? Key Features
? Secure Token-Based Auto-Login
- Replaces outdated IP-based sessions with a secure token authentication system
- Players receive a unique login token after
/login or /register
- Enables safe and seamless auto-login on future joins
- Falls back to manual login if client mod is not installed
✔ Requires mod on both client & server for full functionality
? Core Authentication System
/register <password> <confirm> — Create a new account
/login <password> — Authenticate returning players
/change_password <old> <new> <confirm> — Update credentials securely
? Advanced Security Features
- SHA-256 password hashing with per-user unique salt
- Rate limiting to prevent brute-force login attempts
- Temporary account lockout after failed attempts (configurable)
- Multiple session prevention (one account = one player)
- Optional session caching fallback for compatibility
? Strict Pre-Authentication Protection
Until a player is authenticated, they are fully restricted:
- No movement (frozen state)
- No block breaking or placing
- No inventory or container access
- No item pickup
- No combat interaction
- No chat (except auth commands)
- No command usage (except
/login & /register)
- Perspective switching is blocked
⏱ Smart Timeout System
- Configurable login timeout with auto-kick
- Grace period before teleporting after login
- Action bar + title reminders at configurable intervals
? Spawn & Return System
- Optional spawn teleport on join
- Automatically returns players to their original position after login
- Crash-safe position persistence
- Supports world spawn or custom coordinates
? Admin Commands (/auth_admin)
reload — Reload configuration
resetpassword <player> <newPassword> — Reset player password
unregister <player> — Remove player account
forcelogin <player> — Authenticate player manually
forcelogout <player> — De-authenticate player
info <player> — View auth status
list — List all registered players
⚙ Highly Configurable
- Authentication timeout & session settings
- Password rules (length, complexity, requirements)
- Fully customizable messages
- Flexible spawn/teleport behavior
? Who Is This For?
✅ Ideal for Offline-Mode (Cracked) Servers
- No Mojang authentication → anyone can use any username
- Prevents account impersonation and griefing
- Ensures only registered users can access their accounts
- Essential for protecting player progress and data
⚠ On Online-Mode Servers
- Mojang already verifies player identity and UUID
- No risk of impersonation
- Using this mod may cause double authentication (Mojang + mod)
? Still usable, but generally redundant unless extra security layers are needed
? Why Choose Sol’s AuthLogin?
- Strong protection against common exploits
- Smooth player experience with auto-login
- Built for stability, configurability, and real server environments
Author: Solmochi
Found a bug or have a suggestion? Don't hesitate to leave a comment! I will answer it as fast as I could :)
评论 0
登录后参与评分
还没有评论,来抢沙发吧