? SimpleLock
SimpleLock 是一款轻量且安全的 Paper 服务器锁定插件。它允许服务器管理员使用随机生成的数字访问代码临时锁定服务器。
非常适合用于 私人服务器、开发服务器、测试环境、维护期间,或任何您希望在不关闭服务器的情况下临时限制访问的场景。
✨ 功能
? 服务器锁定
通过一条简单的命令锁定整个服务器:
/lock
当服务器被锁定时,SimpleLock 会生成一个 随机的 6 位访问代码。
该代码仅对授权的管理员可见,绝不会向普通玩家泄露。
? 安全的代码输入
加入已锁定服务器的玩家会被放入专用的 代码输入 GUI 中。
他们必须使用屏幕上的数字按钮输入正确的代码,才能访问服务器。
在锁定状态下,玩家无法通过以下方式简单地绕过系统:
- 移动
- 破坏或放置方块
- 打开物品栏
- 与世界互动
- 使用常规命令
- 丢弃或拾取物品
- 聊天
- 使用其他常见的游戏内交互
? 管理员权限
服务器管理员在服务器锁定期间仍可正常使用服务器。
授权管理员会收到生成的访问代码,并可以通过以下命令管理锁定状态:
/lock
/unlock
?️ 安全特性
SimpleLock 包含多种防护措施,防止意外或故意绕过锁定:
- 随机生成的访问代码
- 可配置的最大尝试次数
- 尝试失败过多后的可选踢出/阻止操作
- 基于 UUID 的玩家身份验证
- GUI 交互保护
- 防止物品栏漏洞利用
- 代码不向普通玩家显示
- 代码不会通过 Tab 补全暴露
- 锁定状态可选择在服务重启后保持
⚙️ 高度可配置
SimpleLock 设计为易于自定义。
配置选项包括:
- 锁定持久化
- 代码长度
- 最大尝试次数
- 失败尝试后的动作
- 临时封禁持续时间
- GUI 标题和大小
- 消息
- 音效
- 权限
所有面向玩家的消息均可通过 messages.yml 进行自定义。
? 命令
| 命令 |
描述 |
/lock |
锁定服务器并生成新的访问代码 |
/unlock |
解锁服务器 |
? 权限
simplelock.lock
simplelock.unlock
simplelock.admin
OP(操作员)默认也可以使用管理功能。
? 依赖要求
- Paper
- Minecraft 1.21.x
- Java 21
? 未来版本
SimpleLock 目前专注于 Paper 1.21.x。
计划支持更新的 Minecraft 版本,包括 1.26.3 及未来的发布版本,并将陆续添加。
目标是使 SimpleLock 能够长期维护并与较新版本的 Minecraft 保持兼容。
? 使用场景
SimpleLock 可用于:
- ? 开发服务器
- ? 插件测试服务器
- ?️ 私人建筑服务器
- ?️ 维护期间
- ? 临时受限服务器
- ? 私人活动
- ?️ 个人 Minecraft 服务器
? SimpleLock
SimpleLock is a lightweight and secure server-lock plugin for Paper servers. It allows server administrators to temporarily lock their server behind a randomly generated numerical access code.
Perfect for private servers, development servers, testing environments, maintenance periods, or situations where you want to temporarily restrict access without shutting down the server.
✨ Features
? Server Lock
Lock your entire server with a simple command:
/lock
When the server is locked, SimpleLock generates a random 6-digit access code.
The code is only shown to authorized administrators and is never revealed to normal players.
? Secure Code Entry
Players joining a locked server are placed into a dedicated code-entry GUI.
They must enter the correct code using the on-screen number buttons before they can access the server.
While locked, players cannot simply bypass the system by:
- Moving around
- Breaking or placing blocks
- Opening inventories
- Interacting with the world
- Using normal commands
- Dropping or picking up items
- Chatting
- Using other common gameplay interactions
? Admin Access
Server administrators can continue using the server normally while it is locked.
Authorized admins receive the generated access code and can manage the lock using:
/lock
/unlock
?️ Security Features
SimpleLock includes several protections against accidentally or intentionally bypassing the lock:
- Randomly generated access codes
- Configurable maximum attempts
- Optional kick/block action after too many failed attempts
- UUID-based player authentication
- GUI interaction protection
- Protection against inventory exploits
- Code is not displayed to normal players
- Code is not exposed through tab completion
- Lock state can optionally persist through server restarts
⚙️ Highly Configurable
SimpleLock is designed to be easy to customize.
Configuration options include:
- Lock persistence
- Code length
- Maximum attempts
- Failed-attempt actions
- Temporary block duration
- GUI title and size
- Messages
- Sounds
- Permissions
All player-facing messages can be customized through messages.yml.
? Commands
| Command |
Description |
/lock |
Locks the server and generates a new access code |
/unlock |
Unlocks the server |
? Permissions
simplelock.lock
simplelock.unlock
simplelock.admin
OPs can also use the administrative functionality by default.
? Requirements
- Paper
- Minecraft 1.21.x
- Java 21
? Future Versions
SimpleLock currently focuses on Paper 1.21.x.
Support for newer Minecraft versions, including 1.26.3 and future releases, is planned and will be added.
The goal is to keep SimpleLock maintained and compatible with newer Minecraft versions over time.
? Use Cases
SimpleLock can be useful for:
- ? Development servers
- ? Plugin testing servers
- ?️ Private building servers
- ?️ Maintenance periods
- ? Temporarily restricted servers
- ? Private events
- ?️ Personal Minecraft servers
评论 0
登录后参与评分
还没有评论,来抢沙发吧