Pumpkin-Docs/docs/zh_cn/config/commands.md
2026-07-24 13:05:39 +02:00

59 lines
799 B
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# 命令
Pumpkin 支持原版命令,并允许你配置命令可以从哪里运行。
## 配置命令
#### `use_console`: 布尔值
是否接受来自控制台的命令。
:::code-group
```toml [pumpkin.toml] {2}
[commands]
use_console = false
```
:::
#### `log_console`: 布尔值
玩家的命令是否应该记录在控制台中。
:::code-group
```toml [pumpkin.toml] {2}
[commands]
log_console = false
```
:::
## 操作权限等级
所有玩家的默认权限等级。
:::code-group
```toml [pumpkin.toml] {2}
default_op_level = 0
```
:::
## 默认配置
默认情况下,Pumpkin 将允许来自控制台的命令,并记录玩家运行的所有命令。
:::code-group
```toml [pumpkin.toml]
[commands]
use_console = true
log_console = true
default_op_level = 0
```
:::