Protection 扩展为传统的圈地插件提供了一个强大而灵活的替代方案。它允许创建带有特定规则(旗标)的复杂区域,用以管理玩家行为、环境事件和生物机制。
- 几何区域 — 支持长方体、圆柱体和多边形(棱柱)形状。
- 层级优先级 — 区域可以重叠,优先级更高的区域会覆盖较低的区域。
- 继承系统 — 子区域可以继承父区域的旗标,或对其进行覆盖。
- 完整旗标 — 60 多个旗标,涵盖建造权限、PvP、生物生成等。
核心元素
事件与逻辑
快速开始
所有命令都在 /protection 前缀下(别名:/pt、/region)。
| 命令 | 说明 | Permission |
|---|
/protection list | 列出所有活动区域及其优先级 | typewriter.protection |
/protection edit <id> | 进入某个区域的选择模式 | typewriter.protection |
/protection apply | 保存当前选区并最终确定区域 | typewriter.protection |
/protection info <id> | 查看区域的技术细节与位置 | typewriter.protection |
/protection flags <id> | 分析生效、继承和被阻止的旗标 | typewriter.protection |
/protection inspect | 切换区域边界的调试可视化 | typewriter.protection |
/protection import-we <id> | 将当前 WorldEdit 选区导入为区域 | typewriter.protection |
占位符
所有占位符都使用前缀 %typewriter_regions:%。
| 占位符 | 说明 |
|---|
%typewriter_regions:count% | 玩家当前所处的区域数量 |
%typewriter_regions:list% | 以逗号分隔的活动区域 ID 列表 |
%typewriter_regions:primary:name% | 当前位置优先级最高的区域名称 |
%typewriter_regions:flag:<flag_id>% | 某个特定旗标的生效值(例如 pvp) |
%typewriter_regions:has:<id1>,<id2>% | 玩家处于所列任一区域时为 true |
%typewriter_regions:active:<index>:id% | 堆栈中第 N 个区域的 ID |
外部依赖
| Extension | 类型 | 功能 |
|---|
FastAsyncWorldEdit | 可选 | 区域选择与几何操作。 |
MythicMobs | 可选 | 区域内生物生成的高级控制。 |
BtcMobs | 可选 | 区域内生物生成的高级控制。 |
| Permission | 说明 |
|---|
typewriter.protection | 保护命令的基础访问权限。 |
typewriter.protection.admin | 管理受保护区域。 |
typewriter.protection.bypass | 绕过保护限制。 |