? Login+
注册一次,永久受保护。 Login+ 是一款面向离线模式服务器的现代化认证插件——密码、会话管理、免费双因素认证(2FA)以及全面的账户保护功能,全部集成在一个适用于 Spigot/Paper 1.8.8 → 1.21+ 的 jar 包中。
采用 Kotlin 编写,完全在服务器端运行,因此支持所有客户端及所有客户端版本。无需模组、无需数据包、无需付费服务——只需将 jar 包放入并重启服务器即可。
?️ 玩家的密码由 Argon2id 进行保护——这是密码哈希竞赛的获胜者,也是 OWASP 的首选推荐方案。其内存硬化设计使得大规模 GPU 暴力破解攻击变得不切实际。密码绝不会以明文形式存储——即使是服务器所有者也无法恢复它们。
✨ 功能特性
- ? Argon2id 密码哈希——目前最强的密码保护方案,提供符合 OWASP 基准的默认设置,您可在配置文件中提升安全级别
- ⏱️ 会话管理——从同一 IP 地址在 15 分钟(可配置)内重新连接时可跳过登录流程。支持服务器重启后保持有效
- ? 免费 2FA ——三种方式:
- Google Authenticator (TOTP)——完全离线工作,二维码渲染为游戏内的地图物品,便于扫描
- Discord——您的专属机器人通过私信发送登录验证码
- Telegram——您的专属机器人发送登录验证码
- ? 安全警报——关联了 Discord/Telegram 的玩家会收到关于新 IP 登录、暴力破解尝试和密码更改的警告——即使玩家处于离线状态
- ? 控制台密码屏蔽——拦截
/login 和 /register 命令,确保密码永远不会出现在控制台或日志文件中
- ? 登录前完全冻结——禁止移动、聊天、使用命令、受到伤害、打开物品栏或拾取物品;可选的致盲效果和出生点传送可隐藏基地坐标,防止主播窥屏
- ? 防机器人 & 防暴力破解保护——基于玩家尝试次数限制、基于 IP 封禁、加入洪水锁定、用户名正则过滤、基于 IP 的账户数量限制
- ? 防冒充机制——如果账户已注册为
Notch,则踢出 NoTcH;阻止重复名称;可选 UUID 检查
- ? 正版模式——
/premium 命令允许经过验证的 Mojang 账户跳过密码输入(仅在连接能够被实际验证时生效——Login+ 从不伪造验证状态)
- ? 邮件找回——忘记密码?一封一次性验证码将通过您自己的 SMTP 邮箱发送。找回后仍需应用 2FA
- ? 国家筛选——按国家白名单或黑名单限制加入
- ? 代理就绪——兼容 Velocity、BungeeCord 和 Waterfall;配合共享 MySQL 数据库,会话可在后端服务器间同步(切换时无需重新登录)。Login+ 会在启动时检查您的转发设置并输出提示
- ? 音效反馈——成功时播放升级铃声,密码错误时播放蜂鸣声(跨版本安全)
- ?️ 开箱即用的 SQLite,网络环境支持 MySQL——带有自动定时备份功能
- ? 完全支持多语言翻译——内置简洁的英文和俄文消息文件
⚙️ 命令与权限
| 命令 |
权限 |
简短说明 |
/register <pass> <pass> |
loginplus.player.register |
创建账号 |
/login <pass>(别名 /l) |
loginplus.player.login |
登录 |
/logout |
loginplus.player.logout |
登出并锁定账号 |
/changepassword <old> <new> |
loginplus.player.changepassword |
修改密码 |
/unregister <pass> |
loginplus.player.unregister |
删除自己的账号 |
/2fa setup <totp|discord|telegram> |
loginplus.player.2fa |
启用双因素认证 |
/2fa <code> |
loginplus.player.2fa |
在登录时输入验证码 |
/email set <address> |
loginplus.player.email |
绑定恢复邮箱 |
/email recovery |
loginplus.player.email |
找回遗忘的密码 |
/premium / /freemium |
loginplus.player.premium |
切换 Mojang 自动登录 |
/loginplus <reload|forcelogin|unregister|info> |
loginplus.admin |
管理员命令 |
所有玩家权限默认开启;管理员命令默认需要 OP 权限。
? 快速开始
- 将 jar 文件放入
/plugins 目录并重启服务器。
- 玩家运行
/register <password> <password>,下次游戏时运行 /login <password>。
- (可选) 在
config.yml 中启用免费的二次验证、邮箱恢复等功能——每个选项都在文件中详细记录。
设置 2FA 机器人(均完全免费)
- Telegram: 向 @BotFather 发送消息 →
/newbot → 复制令牌到 config.yml。玩家运行 /2fa setup telegram。
- Discord: discord.com/developers/applications → New Application → Bot → 复制令牌到
config.yml。玩家运行 /2fa setup discord <their user ID>。
- Google Authenticator: 无需设置——玩家只需运行
/2fa setup totp 并扫描二维码即可。支持离线使用。
? 在 Velocity / BungeeCord / Waterfall 后方运行
Login+ 运行于你的 后端 (Spigot/Paper) 服务器,并完全支持代理网络:
- 在 两端(代理 和 后端)启用 IP 转发。
- 对于多服务器网络,设置
storage.type: MYSQL 并将每个后端指向同一数据库——玩家切换服务器时可无缝保持登录状态。
- 对后端端口进行防火墙限制,使玩家只能通过代理连接。
Login+ 会在启动时验证转发配置,并在发现异常时在控制台输出提示。
? 一些建议
- Login+ 专为离线模式服务器而构建——例如位于 Velocity、BungeeCord 或 Waterfall 代理后端的后端服务器,在这些服务器上 Minecraft 自身的账户验证已被关闭,需要一个登录插件来确保每个账户的安全。纯在线模式(正版)服务器已由 Mojang 验证,因此不需要登录插件。
- 避免使用
/reload;请重启服务器。
- 诚实的安全提示:
/premium 仅在 Mojang 真正验证了连接时才会激活(即在线模式服务器,或使用现代转发功能的在线模式代理)。在普通的离线模式服务器上没有任何可验证的内容,因此它会礼貌地拒绝,而不是假装安全。
? Login+
Register once, stay protected forever. Login+ is a modern authentication plugin for offline-mode servers — passwords, sessions, free 2FA and full account protection in one jar for Spigot/Paper 1.8.8 → 1.21+.
Written in Kotlin, runs fully server side, so every client and every client version is supported. No mods, no datapacks, no paid services — drop the jar in, restart, done.
?️ Your players' passwords are protected with Argon2id — winner of the Password Hashing Competition and OWASP's #1 recommendation. Its memory-hard design makes large-scale GPU brute-force attacks impractical. Passwords are never stored as readable text — not even the server owner can recover them.
✨ Features
- ? Argon2id password hashing — the strongest password protection available today, with OWASP-baseline defaults you can raise in the config
- ⏱️ Sessions — reconnect within 15 minutes (configurable) from the same IP and skip the login. Survives server restarts
- ? Free 2FA — three flavours:
- Google Authenticator (TOTP) — works 100% offline, the QR code is rendered on an in-game map item for easy scanning
- Discord — your own bot DMs the login code
- Telegram — your own bot sends the login code
- ? Security alerts — players with Discord/Telegram linked get warned about new-IP logins, brute-force attempts and password changes — even while offline
- ? Console password shield —
/login and /register are intercepted so passwords never appear in the console or log files
- ? Full freeze before login — no moving, chatting, commands, damage, inventory or item pickup; optional blindness and spawn teleport that hides base coordinates from stream snipers
- ? Anti-bot & brute-force protection — per-player attempt limits, per-IP lockouts, join-flood lockdown, username regex filter, per-IP account limits
- ? Anti-impersonation — kicks
NoTcH if the account was registered as Notch, blocks duplicate names, optional UUID checks
- ? Premium mode —
/premium lets verified Mojang accounts skip the password (only when the connection can actually be verified — Login+ never pretends)
- ? E-mail recovery — forgot the password? A one-time code is mailed via your own SMTP mailbox. 2FA still applies after recovery
- ? Country filter — whitelist or blacklist joins by country
- ? Proxy ready — works behind Velocity, BungeeCord and Waterfall; with shared MySQL, sessions carry across backend servers (no re-login when switching). Login+ checks your forwarding setup on startup and prints hints
- ? Sound feedback — level-up chime on success, buzzer on wrong password (cross-version safe)
- ?️ SQLite out of the box, MySQL for networks — with automatic scheduled backups
- ? Fully translatable — clean English and Russian message files included
⚙️ Commands & Permissions
| Command |
Permission |
Short Description |
/register <pass> <pass> |
loginplus.player.register |
Create an account |
/login <pass> (alias /l) |
loginplus.player.login |
Log in |
/logout |
loginplus.player.logout |
Log out and lock the account |
/changepassword <old> <new> |
loginplus.player.changepassword |
Change password |
/unregister <pass> |
loginplus.player.unregister |
Delete own account |
/2fa setup <totp|discord|telegram> |
loginplus.player.2fa |
Enable two-factor auth |
/2fa <code> |
loginplus.player.2fa |
Enter the code during login |
/email set <address> |
loginplus.player.email |
Bind a recovery e-mail |
/email recovery |
loginplus.player.email |
Recover a forgotten password |
/premium / /freemium |
loginplus.player.premium |
Toggle Mojang auto-login |
/loginplus <reload|forcelogin|unregister|info> |
loginplus.admin |
Admin commands |
All player permissions default to true; admin commands default to OP.
? Quick Start
- Drop the jar into
/plugins and restart the server.
- Players run
/register <password> <password>, then /login <password> next time.
- (Optional) Enable free 2FA, e-mail recovery and more in
config.yml — every option is documented right in the file.
Setting up the 2FA bots (both 100% free)
- Telegram: message @BotFather →
/newbot → copy the token into config.yml. Players run /2fa setup telegram.
- Discord: discord.com/developers/applications → New Application → Bot → copy the token into
config.yml. Players run /2fa setup discord <their user ID>.
- Google Authenticator: nothing to set up — players just run
/2fa setup totp and scan the QR map. Works offline.
? Running behind Velocity / BungeeCord / Waterfall
Login+ runs on your backend (Spigot/Paper) servers and fully supports proxy networks:
- Enable IP forwarding on both sides (proxy and backend).
- For multi-server networks set
storage.type: MYSQL and point every backend at the same database — players switching servers stay logged in seamlessly.
- Firewall the backend ports so players can only connect through the proxy.
Login+ verifies the forwarding configuration on startup and prints console hints if something looks wrong.
? Some Advice
- Login+ is built for offline-mode servers — for example, the backend servers behind a Velocity, BungeeCord or Waterfall proxy, where Minecraft's own account verification is turned off and a login plugin is what keeps every account secure. Pure online-mode (premium) servers are already verified by Mojang, so they don't need a login plugin.
- Avoid
/reload; restart the server instead.
- Honest security note:
/premium only activates when Mojang really verified the connection (online-mode server or online-mode proxy with modern forwarding). On a plain offline-mode server there is nothing to verify, so it politely refuses instead of pretending to be secure.
评论 0
登录后参与评分
还没有评论,来抢沙发吧