适用于离线模式 Paper 服务器的登录与注册功能。拥有付费 Minecraft 账户的玩家以及基岩版玩家可跳过密码验证,其他玩家将获得一种难以被滥用的登录机制。
该插件属于 JP Plugins 系列,但也可以独立运行。
功能特性
登录流程
- 支持在聊天栏或登录窗口(对话框)中使用
/register 和 /login 命令
- 基于 IP 会话管理,避免玩家在每次短暂重连时重复登录
- 通过电子邮件进行密码找回(使用
/email、/recover 命令)
正版玩家支持
- 无需密码即可通过 Mojang 账户登录
- 新的正版玩家会自动完成注册
- 兼容任何已登录 Microsoft 账户的启动器,包括 Modrinth 启动器
- 每个正版账户都会记录其关联的 Mojang 账户,防止因 Mojang 用户名更改而导致账号被他人接管
基岩版玩家支持
- 配合 Geyser 和 Floodgate 使用时,基岩版玩家可自动注册并登录
安全防护
- 多次输入错误密码后锁定账户
- 集成验证码(Captcha)及反机器人检测
- 阻止使用相同名称或其他大小写变体建立第二个连接
- 服务器启动时提醒管理员存在未绑定账户的 OP(管理员)
面向服务器所有者
- 支持从 AuthMe 导入数据:玩家保留原有密码(使用
/auth import authme 命令)
- 支持 SQLite 或 MySQL 数据库
- 可选认证世界、分阶段出生点设置以及 Discord Webhook 通知
- 提供英语、西班牙语、葡萄牙语、法语和德语消息,也可自定义语言包
- 提供 API 和事件接口,方便其他插件集成
依赖要求
- Paper 26.3 或更高版本(需 Java 25)
可选依赖
- PacketEvents: 在离线模式下用于实现正版玩家登录
- Floodgate: 用于基岩版玩家自动登录
安装方法
- 将插件 jar 文件放入服务器的
plugins 文件夹中。
- 重启服务器。系统将在
plugins/JPAuth/ 目录下生成配置文件和消息文件。
- 根据需要修改文件内容,然后执行
/auth reload 命令或再次重启服务器。
作为 OP(管理员),输入 /jp 可查看你已安装的所有 JP 插件列表、版本号以及它们检测到的可选依赖插件。
命令说明
/register <password> <confirm>(别名 /reg):注册你的账户
/login <password>(别名 /l):登录你的账户
/logout:登出当前账户
/changepassword <oldPassword> <newPassword>(别名 /changepw、/cpw):修改密码
/premium [confirm]:开启或关闭正版自动登录功能(每次加入服务器时由 Mojang 验证身份)
/captcha <code>:完成验证码验证
/email <add <email> <email>|verify <code>|show|remove>(别名 /mail):添加、查看或移除找回密码用的电子邮件地址
/recover 或 /recover <code> <new password> <new password>(别名 /forgotpassword):通过找回密码邮箱重置遗忘的密码
/auth <subcommand>:管理员相关认证命令
/authfreeze <player>(别名 /afreeze):冻结或解冻玩家(限制其登录系统权限)
权限节点
jpauth.admin(OP 默认拥有):访问 JPAuth 管理员命令
jpauth.bypass.antibot(默认无人拥有):绕过反机器人检测
jpauth.bypass.captcha(默认无人拥有):免除验证码要求
jpauth.bypass.accountlimit(默认无人拥有):允许超过安全配置中 security.max-accounts-per-ip 限制的每 IP 账户数量上限
技术支持
完整文档、默认配置文件及设置指南请访问 JP Plugins 网站的 JPAuth 页面。
如有疑问、发现 Bug 或有改进建议?欢迎加入 JP Plugins Discord 社区。
喜欢这些插件吗?你可以在 Ko-fi 上支持 JP Plugins。
统计信息
JPAuth 使用 bStats 来统计运行该插件的服务器数量。它仅发送匿名数据,例如服务器类型、Java 版本、玩家人数和国家/地区信息。如需禁用所有插件的统计数据收集,请编辑 plugins/bStats/config.yml 文件中的相应设置。
许可证
JPAuth 可免费用于任何服务器,包括商业盈利服务器,但它并非开源软件。请勿重新上传、出售或分发修改后的副本。完整条款详见 jar 包内的 LICENSE.txt 文件。
Login and registration for offline-mode Paper servers. Players with a paid Minecraft account and Bedrock players can skip the password, and everyone else gets a login that's hard to abuse.
Part of JP Plugins, but it works on its own.
Features
Logging in
/register and /login in chat or in a login window (dialog)
- Sessions per IP, so players don't log in again on every short reconnect
- Password recovery by e-mail (
/email, /recover)
Premium players
- Log in through Mojang with no password
- New premium players are registered automatically
- Works with any launcher signed in with a Microsoft account, including the Modrinth launcher
- Each premium account remembers its Mojang account, so a name can't be taken over after a Mojang name change
Bedrock players
- Registered and logged in automatically with Geyser and Floodgate
Protection
- Account locks after wrong passwords
- Captcha and anti-bot checks
- Blocks a second connection with the same name, and look-alike names in other capitals
- Warns you at startup about operators without an account
For server owners
- Import from AuthMe: players keep their passwords (
/auth import authme)
- SQLite or MySQL
- Optional auth world, spawn points per stage and a Discord webhook
- Messages in English, Spanish, Portuguese, French and German, or add your own language
- API and events for other plugins
Requirements
- Paper 26.3 or newer (Java 25)
Optional
- PacketEvents: needed for premium login on offline-mode servers
- Floodgate: Bedrock players log in automatically
Installation
- Put the jar in your server's
plugins folder.
- Restart the server.
plugins/JPAuth/ is created with the config and messages.
- Change what you want in the files, then use
/auth reload or restart.
Type /jp as an operator to see every JP plugin you have installed, its version and which optional plugins it found.
Commands
/register <password> <confirm> (also /reg): Register your account
/login <password> (also /l): Login to your account
/logout: Logout from your account
/changepassword <oldPassword> <newPassword> (also /changepw, /cpw): Change your password
/premium [confirm]: Turn premium auto-login on or off (Mojang verifies you on every join)
/captcha <code>: Solve captcha verification
/email <add <email> <email>|verify <code>|show|remove> (also /mail): Add, check or remove your recovery e-mail
/recover or /recover <code> <new password> <new password> (also /forgotpassword): Reset a forgotten password with your recovery e-mail
/auth <subcommand>: Admin authentication commands
/authfreeze <player> (also /afreeze): Freeze or unfreeze a player (login system)
Permissions
jpauth.admin (operators): Access to JPAuth admin commands
jpauth.bypass.antibot (nobody): Bypass antibot checks
jpauth.bypass.captcha (nobody): Bypass captcha requirement
jpauth.bypass.accountlimit (nobody): Register more accounts per IP than security.max-accounts-per-ip
Support
Full docs, the default config and setup guides are on the JPAuth page of the JP Plugins website.
Questions, bugs or ideas? Join the JP Plugins Discord.
Like the plugins? You can support JP Plugins on Ko-fi.
Statistics
JPAuth uses bStats to count how many servers run it. It sends anonymous numbers only, like the server and Java version, the player count and the country. Turn it off for every plugin in plugins/bStats/config.yml.
License
JPAuth is free to use on any server, including servers that make money, but it is not open source. Don't reupload, sell or share modified copies of it. The full terms are in LICENSE.txt inside the jar.
评论 0
登录后参与评分
还没有评论,来抢沙发吧