Schematic 与快照指令
基本信息
| 属性 | 值 |
|---|---|
| 来源类 | SchematicCommands(5)、SnapshotCommands(5)、SnapshotUtilCommands(1) |
| 文件 | command/SchematicCommands.java(359 行)、command/SnapshotCommands.java(279 行)、command/SnapshotUtilCommands.java(158 行) |
| 注册位置 | CommandManager.java:165(/schematic 组)、CommandManager.java:169(/snapshot 组)、CommandManager.java:148(根节点) |
| 命令数 | 11 |
Schematic 指令(/schematic 组)
| 指令 | 别名 | 说明 | 权限节点 |
|---|---|---|---|
/schematic load |
— | Load a schematic into your clipboard | (无) |
/schematic save |
— | Save a schematic into your clipboard | (无) |
/schematic delete |
d |
Delete a saved schematic | worldedit.schematic.delete |
/schematic formats |
listformats、f |
List available formats | worldedit.schematic.formats |
/schematic list |
all、ls |
List saved schematics | worldedit.schematic.list |
/schematic 组本身另有 3 个别名:schem、//schematic、//schem(CommandManager.java:163),故 /schematic、/schem、//schematic、//schem 均可。
/schematic formats 遍历 ClipboardFormat.values() 打印全部可用格式及其查找名(SchematicCommands.java:228-241)。
快照指令(/snapshot 组)
| 指令 | 说明 | 权限节点 |
|---|---|---|
/snapshot list |
List snapshots | worldedit.snapshots.list |
/snapshot use |
Choose a snapshot to use | worldedit.snapshots.restore |
/snapshot sel |
Choose the snapshot based on the list id | worldedit.snapshots.restore |
/snapshot before |
Choose the nearest snapshot before a date | worldedit.snapshots.restore |
/snapshot after |
Choose the nearest snapshot after a date | worldedit.snapshots.restore |
/snapshot 组别名 snap(CommandManager.java:167),故 /snapshot 与 /snap 等价。
快照恢复指令(根节点)
| 指令 | 别名 | 说明 | 权限节点 |
|---|---|---|---|
/restore |
//restore |
Restore the selection from a snapshot | worldedit.snapshots.restore |
restore的主别名不含前导斜杠 → 实际输入/restore;第二别名/restore→ 实际输入//restore。两者都可用。
功能差异
| Schematic | Snapshot | |
|---|---|---|
| 本质 | 玩家主动导出的剪贴板存档 | 定时自动备份的区域副本 |
| 存放 | 配置 schematic-save-dir(默认 schematics) |
配置 snapshots-dir(默认空 → 功能禁用) |
| 触发 | 手动 save |
定时 + //we tz 设定时区 |
快照功能默认关闭:PropertiesConfiguration.java:113-116 仅在 snapshots-dir 非空时才构造 SnapshotRepository,为空则不创建。
相关条目
- 剪贴板与 schematic 格式 - 唯一的 SCHEMATIC 格式
- worldedit.properties 配置项 -
schematic-save-dir、snapshots-dir - 世界编辑管理指令 -
//we tz设置快照时区