WorldLockPlus
? 使用企业级密码保护安全访问世界
WorldLockPlus 是一款功能强大的 Bukkit/Spigot 插件,为 Multiverse-Core 管理的世界添加密码保护。即使服务器管理员也必须输入密码才能访问受保护的世界(除非他们拥有 bypass 权限)。
✨ 功能特性
- ? 企业级安全性:采用 bcrypt 密码哈希算法(工作因子为 12),提供最高级别的安全保障
- ?️ 管理员保护:除非拥有 bypass 权限,否则即使是服务器管理员也必须输入密码
- ? 全面拦截:防止传送、切换世界以及未授权访问
- ⏱️ 基于会话的访问:授权状态持续至玩家登出,方便使用
- ? 持久化存储:密码安全地存储在配置文件中
- ? Multiverse 集成:与 Multiverse-Core 无缝协作
- ? 自动迁移:检测并警告旧版密码格式
? 依赖要求
- Minecraft Server:Spigot/Paper 1.19+
- Multiverse-Core:必需依赖项 (点击下载)
- Java:17 或更高版本
? 安装步骤
- 首先安装 Multiverse-Core
- 下载 WorldLockPlus 并将其放入
plugins/ 文件夹中
- 重启服务器
- 使用以下命令配置世界密码
? 命令说明
管理员命令
/worldlock 或 /wlock (别名)
/worldlock set <world> <password> - 为世界设置密码
/worldlock remove <world> - 移除世界的密码保护
/worldlock list - 列出所有已设置密码的世界
权限节点:worldlock.admin (默认:OP)
玩家命令
/wunlock
/wunlock <world> <password> - 输入密码以解锁对受保护世界的访问权限
权限节点:worldlock.use (默认:true)
? 权限
worldlock.admin - 对世界锁管理拥有完全访问权限(默认:OP)
worldlock.use - 能够解锁受密码保护的世界(默认:true)
worldlock.bypass - 完全绕过世界密码保护(默认:false)
? 使用示例
# 管理员保护 "lobby" 世界
/worldlock set lobby MySecurePassword123
# 玩家尝试传送(被阻止)
/mv tp lobby
# 提示:“⚠ 此世界受密码保护!请使用 /wunlock lobby <密码> 进入。”
# 玩家解锁访问权限
/wunlock lobby MySecurePassword123
# 提示:“密码正确!正在传送到‘lobby’...”
# 提示:“已授予访问权限,直到登出。”
# 玩家现在可以访问该世界
/mv tp lobby
? 安全特性
- bcrypt 哈希:采用行业标准的密码哈希算法,工作因子为 12(4096 次迭代)
- 内置盐值:每个密码哈希均自动包含唯一的盐值
- 抗暴力破解:自适应哈希机制使得攻击计算成本高昂
- 安全存储:密码从不以明文形式存储
- 会话管理:出于安全考虑,退出登录时将清除访问权限
⚙️ 配置
密码会自动使用 bcrypt 格式存储在 plugins/WorldLockPlus/config.yml 中。配置文件由系统自动管理——无需手动编辑。
❓ 故障排除
- 插件无法启用:请确保已安装并启用 Multiverse-Core
- 无法访问世界:使用
/wunlock <world> <password> 为自己授权
- 管理员绕过限制:检查他们是否拥有
worldlock.bypass 权限
- 旧版密码:如果看到关于旧格式版本的警告,请使用
/worldlock set 重置密码
? 注意事项
- 为便于使用,授权在玩家登出前一直有效
- 如果玩家失去授权,将被自动传送至受保护世界之外
- 该插件支持 Multiverse-Core 的所有世界管理功能
- 密码区分大小写
WorldLockPlus
? Secure world access with enterprise-grade password protection
WorldLockPlus is a powerful Bukkit/Spigot plugin that adds password protection to worlds managed by Multiverse-Core. Even server operators must enter passwords to access protected worlds (unless they have the bypass permission).
✨ Features
- ? Enterprise Security: Uses bcrypt password hashing (work factor 12) for maximum security
- ?️ Operator Protection: Even server operators must enter passwords unless they have bypass permission
- ? Comprehensive Blocking: Prevents teleportation, world changes, and unauthorized access
- ⏱️ Session-Based Access: Authorization lasts until player logout for convenience
- ? Persistent Storage: Passwords are securely stored in config files
- ? Multiverse Integration: Seamlessly works with Multiverse-Core
- ? Automatic Migration: Detects and warns about legacy password formats
? Requirements
- Minecraft Server: Spigot/Paper 1.19+
- Multiverse-Core: Required dependency (Download here)
- Java: 17 or higher
? Installation
- Install Multiverse-Core first
- Download WorldLockPlus and place it in your
plugins/ folder
- Restart your server
- Configure world passwords using the commands below
? Commands
Admin Commands
/worldlock or /wlock (aliases)
/worldlock set <world> <password> - Set a password for a world
/worldlock remove <world> - Remove password protection from a world
/worldlock list - List all password-protected worlds
Permission: worldlock.admin (default: OP)
Player Commands
/wunlock
/wunlock <world> <password> - Enter password to unlock access to a protected world
Permission: worldlock.use (default: true)
? Permissions
worldlock.admin - Full access to world lock management (default: OP)
worldlock.use - Ability to unlock password-protected worlds (default: true)
worldlock.bypass - Bypass world password protection entirely (default: false)
? Usage Example
# Admin protects the "lobby" world
/worldlock set lobby MySecurePassword123
# Player tries to teleport (blocked)
/mv tp lobby
# Message: "⚠ This world is password protected! Use /wunlock lobby <password> to enter."
# Player unlocks access
/wunlock lobby MySecurePassword123
# Message: "Password correct! Teleporting to 'lobby'..."
# Message: "Access granted until logout."
# Player can now access the world
/mv tp lobby
? Security Features
- bcrypt Hashing: Industry-standard password hashing with work factor 12 (4096 iterations)
- Built-in Salt: Each password hash includes a unique salt automatically
- Brute-Force Resistant: Adaptive hashing makes attacks computationally expensive
- Secure Storage: Passwords are never stored in plain text
- Session Management: Access is cleared on logout for security
⚙️ Configuration
Passwords are automatically stored in plugins/WorldLockPlus/config.yml using bcrypt format. The configuration file is managed automatically - no manual editing required.
❓ Troubleshooting
- Plugin won't enable: Ensure Multiverse-Core is installed and enabled first
- Can't access world: Use
/wunlock <world> <password> to authorize yourself
- Operators bypassing: Check they don't have
worldlock.bypass permission
- Legacy passwords: If you see warnings about legacy formats, reset passwords using
/worldlock set
? Notes
- Authorization persists until player logout for convenience
- Players are automatically teleported away from protected worlds if they lose authorization
- The plugin works with all Multiverse-Core world management features
- Passwords are case-sensitive
评论 0
登录后参与评分
还没有评论,来抢沙发吧