RemooLogin
RemooLogin 为 Minecraft 服务器添加了基于密码的注册和登录功能。玩家在进行移动或使用大多数游戏功能之前必须先进行身份验证。
功能特性
- 支持使用命令进行带密码确认的玩家注册和登录。
- 登录快捷指令:
/l 对应 /login,/reg 对应 /register。
- 预登录限制:禁止移动、使用命令、交互、使用物品栏、破坏/放置方块、丢弃/拾取物品以及受到伤害。
- 记录每个账户的注册日期和上次成功登录日期(均为 UTC 时间)。
- 可在
config.yml 中自定义聊天前缀和面向玩家的提示信息。
- 可选 Discord Webhook 通知,用于在成功登录或注册时发送提醒。通知内容包括玩家名称、操作类型、UTC 日期、坐标、维度及世界信息;密码不会被发送。
- 支持管理员账号管理和重载命令。
- 采用本地 JSON 存储,无需外部数据库。
命令列表
| 命令 |
描述 |
权限要求 |
/register <password> <password> |
创建账户;需输入两次密码 |
玩家 |
/reg <password> <password> |
/register 的快捷方式 |
玩家 |
/login <password> |
对已有账户进行身份验证 |
玩家 |
/l <password> |
/login 的快捷方式 |
玩家 |
/unlogin |
注销当前会话,需重新验证身份 |
玩家 |
/unregister <user> |
删除指定账户(包括离线玩家) |
管理员 |
/loginreload |
重载 config.yml 配置文件和账户数据 |
管理员 |
/reloadpasswords |
仅重载账户数据 |
管理员 |
/remoologin |
显示插件的命令帮助信息 |
管理员 |
兼容性与要求
- 该插件声明最低 Bukkit API 版本为
1.21,并针对 Spigot API 1.21.7 进行编译。
- 目标平台:Spigot/Paper 1.21.x 以及 Paper 26.2/26.3。在实际部署前,建议在具体的服务器构建版本上测试运行时兼容性。
- 服务器必须使用其 Minecraft 版本所要求的 Java 版本。
- 专为离线模式(offline-mode)服务器设计。本插件本身不通过 Mojang/Microsoft 认证来验证玩家身份。
安装与配置
- 下载插件 JAR 文件,并将其放入服务器的
plugins 文件夹中。
- 启动或重启服务器。
- 配置生成的
plugins/RemooLogin/config.yml 文件。
- 编辑配置文件或账户数据后,运行
/loginreload 命令以应用更改。
插件将账户数据存储于 plugins/RemooLogin/passwords.json 中。可以加载现有的账户条目;当下次保存账户数据时,缺失的时间戳字段将被自动填充。
要启用 Discord 通知,请将 discord-webhook.enabled 设置为 true,提供你的 Discord Webhook URL,并在 config.yml 中选择触发登录和注册通知的事件。请妥善保管 Webhook URL 的私密性。
局限性
- 目前密码以明文形式存储,未使用 SHA-256 或其他密码哈希算法。
- 当前实现中没有聊天屏蔽监听器或身份验证音效功能。
- 插件使用玩家名称作为账户标识符。
- Webhook 功能要求服务器能够通过 HTTPS 访问 Discord。
作者
由 Remoo 制作
Discord: remoodabest
版权所有 (c) Remoo。保留所有权利。
RemooLogin
RemooLogin adds password-based registration and login for Minecraft servers. Players authenticate before they can move or use most gameplay features.
Features
- Player registration with password confirmation and login using commands.
- Login shortcuts:
/l for /login and /reg for /register.
- Pre-login restrictions on movement, commands, interactions, inventory use, block actions, dropping/picking up items, and damage.
- Per-account registration date and last successful login date, recorded in UTC.
- Configurable chat prefix and player-facing messages in
config.yml.
- Optional Discord webhook notifications for successful login and registration. Notifications include the player name, action, UTC date, coordinates, dimension, and world; passwords are not sent.
- Operator account management and reload commands.
- Local JSON storage; no external database is required.
Commands
| Command |
Description |
Access |
/register <password> <password> |
Create an account; enter the password twice |
Players |
/reg <password> <password> |
Shortcut for /register |
Players |
/login <password> |
Authenticate to an existing account |
Players |
/l <password> |
Shortcut for /login |
Players |
/unlogin |
Log yourself out and require authentication again |
Players |
/unregister <user> |
Remove an account, including an offline player's account |
Operators |
/loginreload |
Reload config.yml and account data |
Operators |
/reloadpasswords |
Reload account data only |
Operators |
/remoologin |
Show the plugin's command help |
Operators |
Compatibility and requirements
- The plugin declares Bukkit API baseline
1.21 and is compiled against Spigot API 1.21.7.
- Intended target: Spigot/Paper 1.21.x and Paper 26.2/26.3. Runtime compatibility should be tested on the exact server build before deployment.
- The server must use the Java version required by its Minecraft version.
- Designed for use on offline-mode servers. This plugin does not itself verify player identity with Mojang/Microsoft authentication.
Installation and configuration
- Download the plugin JAR and place it in the server's
plugins folder.
- Start or restart the server.
- Configure the generated
plugins/RemooLogin/config.yml.
- Run
/loginreload after editing configuration or account data.
The plugin stores accounts in plugins/RemooLogin/passwords.json. Existing account entries can be loaded; missing timestamp fields are filled when account data is next saved.
To enable Discord notifications, set discord-webhook.enabled to true, provide your Discord webhook URL, and choose the login and registration events in config.yml. Keep the webhook URL private.
Limitations
- Passwords are currently stored in plain text, not SHA-256 or another password hash.
- There is no chat-blocking listener or authentication sound effect in the current implementation.
- The plugin uses player names as account identifiers.
- Webhook functionality requires the server to be able to reach Discord over HTTPS.
Author
Made by Remoo
Discord: remoodabest
Copyright (c) Remoo. All rights reserved.
评论 0
登录后参与评分
还没有评论,来抢沙发吧