移动、历史与脚本指令
基本信息
| 属性 | 值 |
|---|---|
| 来源类 | NavigationCommands(7)、HistoryCommands(3)、ScriptingCommands(2) |
| 文件 | command/NavigationCommands.java(166 行)、command/HistoryCommands.java(121 行)、command/ScriptingCommands.java(98 行) |
| 注册位置 | CommandManager.java:144、:143、:146 |
| 命令数 | 12 |
移动指令(NavigationCommands)
| 指令 | 别名 | 说明 | 权限节点 |
|---|---|---|---|
/unstuck |
! |
Escape from being stuck inside a block | worldedit.navigation.unstuck |
/ascend |
asc |
Go up a floor | worldedit.navigation.ascend |
/descend |
desc |
Go down a floor | worldedit.navigation.descend |
/ceil |
— | Go to the celing | worldedit.navigation.ceiling |
/thru |
— | Passthrough walls | worldedit.navigation.thru.command |
/jumpto |
j |
Teleport to a location | worldedit.navigation.jumpto.command |
/up |
— | Go upwards some distance | worldedit.navigation.up |
这 7 条主别名均不含前导斜杠,故实际输入为
/unstuck、/ascend等单斜杠形式。
历史指令(HistoryCommands)
| 指令 | 别名 | 说明 | 权限节点 |
|---|---|---|---|
//undo |
/undo |
Undoes the last action | worldedit.history.undo |
//redo |
/redo |
Redoes the last action (from history) | worldedit.history.redo |
/clearhistory |
clearhistory |
Clear your history | worldedit.history.clear |
//undo 可带参数(HistoryCommands.java:56):
//undo [次数]— 默认 1 次,int times = Math.max(1, args.getInteger(0, 1))//undo <次数> <玩家名>— 撤销他人会话,需额外权限worldedit.history.undo.other(HistoryCommands.java:62);目标会话不存在时打印 “Unable to find session for …” 并中止
脚本指令(ScriptingCommands)
| 指令 | 别名 | 说明 | 权限节点 |
|---|---|---|---|
/cs |
— | Execute a CraftScript | worldedit.scripting.execute |
/.s |
— | Execute last CraftScript | worldedit.scripting.execute |
脚本目录取自配置 craftscript-dir(默认 craftscripts),相对 WorldEdit 工作目录。脚本超时取自 scripting-timeout(默认 3000 ms)。
相关条目
- 编辑会话与历史 -
//undo///redo的实现与历史上限 - worldedit.properties 配置项 -
craftscript-dir、scripting-timeout、history-size - 指令树与注册机制 - 双斜杠与单斜杠拼写规则