██╗ ██████╗ ██████╗ ██╗███╗ ██╗███╗ ███╗███████╗
██║ ██╔═══██╗██╔════╝ ██║████╗ ██║████╗ ████║██╔════╝
██║ ██║ ██║██║ ███╗██║██╔██╗ ██║██╔████╔██║█████╗
██║ ██║ ██║██║ ██║██║██║╚██╗██║██║╚██╔╝██║██╔══╝
███████╗╚██████╔╝╚██████╔╝██║██║ ╚████║██║ ╚═╝ ██║███████╗
╚══════╝ ╚═════╝ ╚═════╝ ╚═╝╚═╝ ╚═══╝╚═╝ ╚═╝╚══════╝
LoginMe
一款适用于离线模式(盗版)Minecraft 服务器的轻量级身份验证插件。单个 JAR 文件即可兼容 Bukkit、Spigot、Paper、Purpur、Folia、BungeeCord、Waterfall 和 Velocity。
功能特性
- 简易账户系统:支持
/register 注册与 /login 登录
- 安全密码:使用唯一的随机盐值对每位玩家的密码进行哈希处理,绝不以明文形式存储
- 会话缓存:短暂断开连接后,玩家保持登录状态
- 登录前完全锁定:在登录前禁止移动、聊天、执行命令、建造、物品使用或战斗
- 未认证玩家致盲效果:为未认证玩家施加失明效果,并在登录时显示欢迎标题与音效
- 登录超时踢出:在规定时间内未登录的玩家将被踢出服务器
- 代理会话共享:在代理端登录后,所有后端服务器均自动保持登录状态
- 无需数据库:所有数据仅保存在一个扁平文件中
兼容性
| 平台 |
支持情况 |
| Bukkit / Spigot |
✅ |
| Paper / Purpur |
✅ |
| Folia |
✅ |
| BungeeCord / Waterfall |
✅ |
| Velocity |
✅ |
Minecraft: 26.1+
安装方法
单机服务器(Paper、Spigot 等)
将 LoginMe.jar 放入 plugins/ 目录并重启服务器。
带代理的网络架构(BungeeCord、Waterfall 或 Velocity)
- 将
LoginMe.jar 放入代理的 plugins/ 文件夹 以及 每个后端服务器的 plugins/ 文件夹中。
- 启动所有服务一次,以便生成配置文件。
- 在代理端和每个后端服务器的
plugins/LoginMe/config.yml 中设置相同的 proxy-secret,然后重启。
玩家可在代理端登录,会话将自动传递至后端服务器。
命令
| 命令 |
描述 |
/login <password> |
登录你的账户 |
/register <password> <confirm> |
创建账户 |
/reg <password> <confirm> |
/register 的别名 |
配置
plugins/LoginMe/config.yml
prefix: "&7[&bLoginMe&7] "
# 玩家断开连接后保留会话的时间长度
# 单位:s(秒)、m(分钟)、h(小时)、d(天)
offline-cache-duration: "5m"
# 玩家加入后在此时间内未登录则被踢出
login-timeout: "60s"
# 仅限代理架构:在代理和所有后端服务器上使用该密钥保持一致
# 单机服务器请留空
proxy-secret: ""
messages:
login-success: "&a登录成功!"
already-logged-in: "&c你已登录!"
not-registered: "&c你尚未注册!请使用 /register <password> <confirm>"
login-usage: "&c用法:/login <password>"
wrong-password: "&c密码错误!"
register-success: "&a注册成功!"
already-registered: "&c你已经注册过了!请使用 /login <password>"
register-usage: "&c用法:/register <password> <confirm>"
password-mismatch: "&c两次输入的密码不一致!"
please-login: "&e请使用 /login <password> 登录"
please-register: "&e请使用 /register <password> <confirm> 注册"
must-login-first: "&c你必须先登录!"
must-login-chat: "&c你必须先登录才能聊天!"
login-timeout: "&c登录超时!请重新连接并登录。"
titles:
login-success: "&a登录成功!"
login-success-subtitle: "&7欢迎回来!"
register-success: "&a注册成功!"
register-success-subtitle: "&7请使用 /login <password> 登录"
所有消息均支持 & 颜色代码。
数据存储
账户信息存储在 plugins/LoginMe/players.dat 中:每行包含玩家的 UUID 及其加盐密码哈希值。该文件可读,但请勿手动编辑。
██╗ ██████╗ ██████╗ ██╗███╗ ██╗███╗ ███╗███████╗
██║ ██╔═══██╗██╔════╝ ██║████╗ ██║████╗ ████║██╔════╝
██║ ██║ ██║██║ ███╗██║██╔██╗ ██║██╔████╔██║█████╗
██║ ██║ ██║██║ ██║██║██║╚██╗██║██║╚██╔╝██║██╔══╝
███████╗╚██████╔╝╚██████╔╝██║██║ ╚████║██║ ╚═╝ ██║███████╗
╚══════╝ ╚═════╝ ╚═════╝ ╚═╝╚═╝ ╚═══╝╚═╝ ╚═╝╚══════╝
LoginMe
A lightweight authentication plugin for offline-mode (cracked) Minecraft servers. One JAR works on Bukkit, Spigot, Paper, Purpur, Folia, BungeeCord, Waterfall and Velocity.
Features
- Simple accounts with
/register and /login
- Secure passwords: hashed with a unique random salt per player, never stored in plaintext
- Session cache: players stay logged in after a brief disconnect
- Full lockdown until login: no moving, chatting, commands, building, item use or combat
- Blindness effect for unauthenticated players, with a welcome title and sound on login
- Login timeout: players who don't log in in time are kicked
- Proxy session sharing: log in once on the proxy and stay logged in on every backend server
- No database needed: everything is kept in one flat file
Compatibility
| Platform |
Supported |
| Bukkit / Spigot |
✅ |
| Paper / Purpur |
✅ |
| Folia |
✅ |
| BungeeCord / Waterfall |
✅ |
| Velocity |
✅ |
Minecraft: 26.1+
Installation
Single server (Paper, Spigot, etc.)
Put LoginMe.jar in plugins/ and restart.
Network with a proxy (BungeeCord, Waterfall or Velocity)
- Put
LoginMe.jar in the proxy's plugins/ folder and in every backend server's plugins/ folder.
- Start everything once so the config files are created.
- Set the same
proxy-secret in plugins/LoginMe/config.yml on the proxy and on every backend server, then restart.
Players log in on the proxy and the session is passed to the backend servers automatically.
Commands
| Command |
Description |
/login <password> |
Log in to your account |
/register <password> <confirm> |
Create an account |
/reg <password> <confirm> |
Alias for /register |
Configuration
plugins/LoginMe/config.yml
prefix: "&7[&bLoginMe&7] "
# How long a session is kept after a player disconnects
# Units: s (seconds), m (minutes), h (hours), d (days)
offline-cache-duration: "5m"
# Kick players who have not logged in within this time after joining
login-timeout: "60s"
# Proxy setups only: use the same secret on the proxy and all backend servers
# Leave empty on a single server
proxy-secret: ""
messages:
login-success: "&aLogin successful!"
already-logged-in: "&cYou are already logged in!"
not-registered: "&cYou are not registered! Use /register <password> <confirm>"
login-usage: "&cUsage: /login <password>"
wrong-password: "&cWrong password!"
register-success: "&aRegister successful!"
already-registered: "&cYou are already registered! Use /login <password>"
register-usage: "&cUsage: /register <password> <confirm>"
password-mismatch: "&cPasswords do not match!"
please-login: "&ePlease login with /login <password>"
please-register: "&ePlease register with /register <password> <confirm>"
must-login-first: "&cYou must login first!"
must-login-chat: "&cYou must login first to chat!"
login-timeout: "&cLogin timeout! Please reconnect and login."
titles:
login-success: "&aLogin Successful!"
login-success-subtitle: "&7Welcome back!"
register-success: "&aRegister Successful!"
register-success-subtitle: "&7Please login with /login <password>"
All messages support & color codes.
Data storage
Accounts are stored in plugins/LoginMe/players.dat: each line holds a player's UUID and their salted password hash. The file is readable but should not be edited by hand.~~~~
评论 0
登录后参与评分
还没有评论,来抢沙发吧