概述
在 Minecraft 中执行 shell 命令!
命令打开的进程的标准输出和标准错误将显示在聊天屏幕上。
注意事项
/shell 命令需要 4 级权限。
命令
/shell run <cmd>
运行可执行文件。
/shell runcmd <cmd>。
类似于 /shell run,但是会在命令前添加 cmd /C 或者 /bin/sh -c (取决于平台)。
可以用来执行 shell 的内部命令或打开文件。
/shell kill
终止进程。
/shell info
显示进程信息。
/shell isalive
检查进程是否存活。
/shell input <type> [content]
向进程的标准输入流输入。
/shell config reload
从文件重新加载配置。
/shell config save
保存配置到文件。
/shell config tab-width <value>
设置 Tab 宽度。
/shell config input-charset <value>
设置输入字符集。
/shell config output-charset <value>
设置输出字符集。
/shell config ansi-escape <isEnabled>
启用/禁用 ANSI 转义符。
/shell help
显示帮助(未完成)。