██╗ ██████╗ ██████╗ ██╗███╗ ██╗███╗ ███╗███████╗
██║ ██╔═══██╗██╔════╝ ██║████╗ ██║████╗ ████║██╔════╝
██║ ██║ ██║██║ ███╗██║██╔██╗ ██║██╔████╔██║█████╗
██║ ██║ ██║██║ ██║██║██║╚██╗██║██║╚██╔╝██║██╔══╝
███████╗╚██████╔╝╚██████╔╝██║██║ ╚████║██║ ╚═╝ ██║███████╗
╚══════╝ ╚═════╝ ╚═════╝ ╚═╝╚═╝ ╚═══╝╚═╝ ╚═╝╚══════╝
LoginMe
一款适用于盗版/离线模式 Minecraft 服务器的轻量级身份验证插件。支持 Bukkit、Spigot、Paper、Purpur、Folia、BungeeCord、Waterfall 和 Velocity —— 所有功能集成在一个 JAR 文件中。
特性
- 提供
/register 和 /login 注册与登录系统
- 密码使用 SHA-256 + 随机盐 进行哈希处理,每位玩家独立存储 — 绝不以明文形式保存
- 离线会话缓存 — 短暂断线后无需重新登录
- 在未通过身份验证前,完全限制移动、聊天和命令使用
- 对未认证玩家施加失明效果
- 代理端登录超时设置(若未在 X 秒内登录则自动踢出)
- 会话共享 — 在代理端登录后,在所有后端服务器间保持登录状态
- 无需外部数据库 — 使用简单的扁平文件 (
players.dat) 存储数据
兼容性
| 平台 |
支持情况 |
| Bukkit / Spigot |
✅ |
| Paper / Purpur |
✅ |
| Folia |
✅ |
| BungeeCord / Waterfall |
✅ |
| Velocity |
✅ |
Minecraft 版本:1.21.1+
安装
独立模式(仅 Paper/Spigot,无代理):
将 LoginMe.jar 放入服务器目录下的 plugins/ 文件夹中并重启服务器。
配合代理使用(BungeeCord / Velocity):
将 LoginMe.jar 同时放入 代理端 的 plugins/ 文件夹以及 每个后端服务器 的 plugins/ 文件夹中。代理端负责身份验证,并自动将会话同步至后端服务器。
命令
| 命令 |
描述 |
/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"
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 以及随机生成的盐和该玩家密码的 SHA-256 哈希值。该文件虽可读,但请勿手动编辑。
██╗ ██████╗ ██████╗ ██╗███╗ ██╗███╗ ███╗███████╗
██║ ██╔═══██╗██╔════╝ ██║████╗ ██║████╗ ████║██╔════╝
██║ ██║ ██║██║ ███╗██║██╔██╗ ██║██╔████╔██║█████╗
██║ ██║ ██║██║ ██║██║██║╚██╗██║██║╚██╔╝██║██╔══╝
███████╗╚██████╔╝╚██████╔╝██║██║ ╚████║██║ ╚═╝ ██║███████╗
╚══════╝ ╚═════╝ ╚═════╝ ╚═╝╚═╝ ╚═══╝╚═╝ ╚═╝╚══════╝
LoginMe
A lightweight authentication plugin for cracked/offline-mode Minecraft servers. Supports Bukkit, Spigot, Paper, Purpur, Folia, BungeeCord, Waterfall, and Velocity — all in a single JAR.
Features
- Register and login system with
/register and /login
- Passwords hashed with SHA-256 + random salt per player — never stored in plaintext
- Offline session cache — players don't need to re-login after briefly disconnecting
- Full movement, chat, and command restrictions until authenticated
- Blindness effect applied to unauthenticated players
- Login timeout on proxy (auto-kick if not logged in within X seconds)
- Session sharing — login once at the proxy, stays logged in across all backend servers
- No external database required — uses a simple flat file (
players.dat)
Compatibility
| Platform |
Supported |
| Bukkit / Spigot |
✅ |
| Paper / Purpur |
✅ |
| Folia |
✅ |
| BungeeCord / Waterfall |
✅ |
| Velocity |
✅ |
Minecraft version: 1.21.1+
Installation
Standalone (Paper/Spigot only, no proxy):
Drop LoginMe.jar into your server's plugins/ folder and restart.
With proxy (BungeeCord / Velocity):
Drop LoginMe.jar into both the proxy plugins/ folder and every backend server's plugins/ folder. The proxy handles authentication and shares the session to backend servers automatically.
Commands
| Command |
Description |
/login <password> |
Login to your account |
/register <password> <confirm> |
Create an account |
/reg <password> <confirm> |
Alias for /register |
Configuration
Located at plugins/LoginMe/config.yml:
prefix: "&7[&bLoginMe&7] "
# How long to keep a session after a player disconnects
# Supports: s (seconds), m (minutes), h (hours), d (days)
offline-cache-duration: "5m"
# Proxy only: kick player if not logged in within this time after joining
login-timeout: "60s"
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
Player data is stored in plugins/LoginMe/players.dat. Each entry contains the player's UUID alongside a randomly generated salt and SHA-256 hash of their password. The file is human-readable but should not be edited manually.
评论 0
登录后参与评分
还没有评论,来抢沙发吧