? 这是什么?
Authen 是一款轻量但功能强大的身份验证插件,适用于离线模式和 VPN/Radmin 服务器。
玩家只需注册一次,之后使用密码登录。无需客户端模组,也无需复杂设置——放入插件即可保护你的服务器:
- 使用密码注册和登录
- 自动从你信任的 IP 地址登录(非常适合 Radmin / Hamachi 群组)
- 在玩家登录之前,禁止移动、聊天、建造或交互
- 密码以不可逆哈希形式存储——绝不保存明文
✨ 功能
? 身份验证
- 密码注册与登录 (
/register, /login)
- 随时更改密码并登出
- 可配置登录超时时间 + 多次尝试失败后踢出
- 屏幕中央显示标题提示 + 重复提醒,确保没人错过登录界面
? 对未认证玩家的防护
- 在未登录前施加失明效果,并/或传送至出生点
- 阻止移动(允许头部旋转)、聊天、命令、交互
- 阻止破坏/放置方块、打开物品栏、掉落物品、受到伤害或造成伤害等
- 每项防护均可单独开关
? IP 自动登录与会话
- 每个账户记住自己的受信任 IP 地址——首次用密码登录后,下次连接时无需再次输入密码
- 专为 Radmin / VPN 群组设计:每位玩家保留自己的专属 IP,不会发生跨账号登录
- 短暂断线后可快速恢复会话
- 共享 IP 守卫: 如果多个账户信任同一个 IP(常见的 NAT / 移动网络 / 单一 VPN 节点),则禁用该 IP 的自动登录功能,必须输入密码——防止账号被盗
? 防机器人与验证
- 限制每个 IP 的最大账户数
- 加入节流(连接冷却时间)
- 名称验证:长度、允许字符、黑名单名称
- 密码策略:最小长度等更多规则
? 安全性
密码使用 PBKDF2-HMAC-SHA256 进行哈希处理(120,000 次迭代 + 每个密码唯一的随机盐值),并在恒定时间内进行比较。
存储的值无法逆向还原为原始密码——即使有人获取了你的数据文件。始终不保存明文密码。
? 给玩家
- 开箱即用——加入服务器并注册即可
/register <password> <password> 创建你的账户
/login <password> 登录(或从受信任的 IP 自动登录)
- 客户端无需安装任何内容
- 你的密码被安全存储,任何人都无法读取
? 给服务器管理员
插件通过 config.yml 和 messages 键提供高度可配置性:
- 切换任意防护项(移动、聊天、命令、方块、物品栏、伤害……)
- 对未认证玩家施加失明效果 / 传送至出生点
- 登录超时、最大尝试次数、失败后踢出
- IP 自动登录:启用/禁用、忽略本地地址、登录时自动添加、最大受信任 IP 数量(
0 = 无限制)、阻止共享 IP
- 会话:启用 + 持续时间
- 标题提示 + 提醒间隔
- 防机器人:每 IP 最大账户数、加入节流
- 名称与密码规则
- 完全自定义消息(支持 MiniMessage 格式)
⌨️ 命令与权限
| 命令 |
别名 |
描述 |
/register <pass> <pass> |
/reg |
创建账户 |
/login <pass> |
/l |
登录你的账户 |
/changepassword <old> <new> |
/changepass, /passwd |
更改密码 |
/logout |
— |
退出当前会话 |
/authen |
/sauth |
管理员命令 (authen.admin) |
? 安装
- 下载
.jar 文件
- 将其放入
plugins/ 文件夹
- 重启服务器
- 完成!(可选:编辑
config.yml)
⚙️ 要求
- Minecraft 1.21+(测试至 26.x)
- Paper / Spigot / Purpur(或兼容分支)
- Java 21+(最新反混淆构建版本需要 Java 25)
- 离线模式 服务器
❓ 常见问题
密码存储安全吗?
是的。它们使用 PBKDF2-HMAC-SHA256 进行哈希处理(120,000 次迭代 + 盐值),且无法逆向还原。原始密码永远不会被存储。
Radmin / VPN 下的 IP 自动登录是如何工作的?
每个账户会记住其自己的受信任 IP。首次密码登录后,你的 IP 将被标记为受信任,下次连接时将自动登录。每位玩家保留自己的专属 IP,因此没有人能登录到他人的账号。
如果两名玩家共享同一个 IP 怎么办?
如果一个 IP 被超过一个账户信任(共享 NAT、移动网络、同一 VPN 网络),则该 IP 的自动登录将自动禁用,并要求输入密码。这由 block-shared-ips 控制(默认开启)。
我需要数据库(MySQL / SQLite)吗?
不需要。Authen 使用简单的扁平文件存储——无需外部数据库。
我可以更改所有消息吗?
可以——每条消息都可配置,并支持 MiniMessage 格式。
? 链接
© 2026 Kasperoid — 保留所有权利
? What is this?
Authen is a lightweight yet powerful authentication plugin for offline-mode and VPN/Radmin servers.
Players register once and log in with a password. No client mod, no setup — just drop it in and the server is protected:
- register & log in with a password
- auto-login from your own trusted IPs (perfect for Radmin / Hamachi groups)
- nobody can move, chat, build or interact until they log in
- passwords are stored as an irreversible hash — never in plain text
✨ Features
? Authentication
- Password registration & login (
/register, /login)
- Change password and log out at any time
- Configurable login timeout + kick after too many failed attempts
- Big center-screen title prompts + repeating reminders so nobody misses the login screen
? Protection for unauthenticated players
- Blindness and/or teleport to spawn until logged in
- Blocks movement (head rotation still allowed), chat, commands, interactions
- Blocks block break/place, inventory, item drops, damage dealt/taken, and more
- Every protection can be toggled individually
? IP auto-login & sessions
- Each account remembers its own trusted IPs — log in once with a password, then connect without a password next time
- Designed for Radmin / VPN groups: every player keeps their personal IP, no cross-login
- Quick session resume after a short disconnect
- Shared-IP guard: if one IP is trusted by several accounts (common NAT / mobile / one VPN network), auto-login is disabled and a password is required — closing account-takeover
? Anti-bot & validation
- Max accounts per IP
- Join throttle (cooldown between connections)
- Name validation: length, allowed characters, blocked names
- Password policy: minimum length and more
? Security
Passwords are hashed with PBKDF2-HMAC-SHA256 (120 000 iterations + a unique random salt per password) and compared in constant time.
The stored value cannot be reversed back into the original password — even if someone gets your data file. No plain-text passwords, ever.
? For Players
- Works right out of the box — just join and register
/register <password> <password> to create your account
/login <password> to log in (or get auto-logged in from a trusted IP)
- Nothing to install on the client
- Your password is stored securely and can never be read by anyone
? For Server Admins
The plugin is highly configurable via config.yml and messages keys:
- Toggle any protection (movement, chat, commands, blocks, inventory, damage…)
- Blindness / teleport-to-spawn for unauthenticated players
- Login timeout, max attempts, kick-on-fail
- IP auto-login: enable/disable, ignore local addresses, auto-add on login, max trusted IPs (
0 = unlimited), block shared IPs
- Sessions: enable + duration
- Title prompts + reminder interval
- Anti-bot: max accounts per IP, join throttle
- Name & password rules
- Fully customizable messages (MiniMessage formatting)
⌨️ Commands & Permissions
| Command |
Aliases |
Description |
/register <pass> <pass> |
/reg |
Create an account |
/login <pass> |
/l |
Log into your account |
/changepassword <old> <new> |
/changepass, /passwd |
Change your password |
/logout |
— |
Log out of the current session |
/authen |
/sauth |
Admin commands (authen.admin) |
? Installation
- Download the
.jar file
- Put it in your
plugins/ folder
- Restart the server
- Done! (Optionally, edit
config.yml)
⚙️ Requirements
- Minecraft 1.21+ (tested up to 26.x)
- Paper / Spigot / Purpur (or compatible forks)
- Java 21+ (Java 25 for the newest deobfuscated builds)
- Offline mode server
❓ FAQ
Are passwords stored safely?
Yes. They are hashed with PBKDF2-HMAC-SHA256 (120 000 iterations + salt) and cannot be reversed. The original password is never stored.
How does IP auto-login work with Radmin / VPN?
Each account remembers its own trusted IPs. After your first password login, your IP is trusted and you'll be logged in automatically next time. Every player keeps their personal IP, so nobody logs into someone else's account.
What if two players share the same IP?
If one IP becomes trusted by more than one account (shared NAT, mobile internet, one VPN network), auto-login from that IP is automatically disabled and a password is required. This is controlled by block-shared-ips (on by default).
Do I need a database (MySQL / SQLite)?
No. Authen uses a simple flat-file storage — no external database required.
Can I change all the messages?
Yes — every message is configurable and supports MiniMessage formatting.
? Links
© 2026 Kasperoid — All Rights Reserved
评论 0
登录后参与评分
还没有评论,来抢沙发吧