# 选项 & 配置

## **或许有用的连接**

* [变量](https://helpch.at/placeholders)
* 物品材质
  * [1.8.8](https://helpch.at/docs/1.8.8/org/bukkit/Material.html)
  * [1.12.2](https://helpch.at/docs/1.12.2/org/bukkit/Material.html)
  * [1.13.2](https://helpch.at/docs/1.13.2/org/bukkit/Material.html)
  * [1.14.4](https://helpch.at/docs/1.14.4/org/bukkit/Material.html)
  * [Latest](https://hub.spigotmc.org/javadocs/spigot/org/bukkit/Material.html)
* [附魔](https://hub.spigotmc.org/javadocs/spigot/org/bukkit/enchantments/Enchantment.html) (请注意，某些附魔无法附魔在某些物品.)
* [染料颜色](https://hub.spigotmc.org/javadocs/spigot/org/bukkit/DyeColor.html)
* [GUI格局](https://hub.spigotmc.org/javadocs/spigot/org/bukkit/block/banner/PatternType.html)
* [声音类型](https://gist.github.com/Andre601/1ab3b4fabd0010ae241156333491c379)

## **值 & 关键字**

| 关键字            | 描述                                                                                                                                       |
| -------------- | ---------------------------------------------------------------------------------------------------------------------------------------- |
| **BOOLEAN**    | 请将其替换为true/false，如果与PlaceholderAPI一起使用，则替换为yes/no(这可以从PlaceHolderAPI配置文件中更改，但是默认是使用yes/no).                                              |
| **TEXT**       | 请将其替换为任意文本。查询文档以了解是否可以使用颜色/格式代码.                                                                                                         |
| **#**          | 将会替换为数字。查询文档以查看是否有数字限制.                                                                                                                  |
| **COMMAND**    | 请使用不带有斜杠的命令代替(`/`).                                                                                                                      |
| **SOUND**      | 替换为声音类型.                                                                                                                                 |
| **EXPRESSION** | 将其替换为Java / PlaceholderAPI表达式，请看 [这里](https://wiki.helpch.at/clips-plugins/deluxemenus/options-and-configurations/requirements) 来获取更多信息. |

## **行为类型**

| 行为关键字                                                    | 描述                                                                                                                                                                                          |
| -------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `[player] <命令>`                                          | 以玩家身份来执行命令.                                                                                                                                                                                 |
| `[console] <命令>`                                         | 以后台身份来执行命令.                                                                                                                                                                                 |
| `[commandevent] <命令>`                                    | 执行未注册的命令(以玩家身份).                                                                                                                                                                            |
| `[message] <文本>`                                         | 发送信息给玩家. 你可以使用 [placeholders](https://helpch.at/placeholders) 或者 颜色/格式 代码在这里.                                                                                                               |
| `[openguimenu] <菜单名>`                                    | 打开其他菜单.                                                                                                                                                                                     |
| `[connect] <服务器名字>`                                      | 连接至其他服务器，必须开启BC.                                                                                                                                                                            |
| `[close]`                                                | 关闭目前的菜单.                                                                                                                                                                                    |
| `[json] <JSON文本>`                                        | 发送JSON文本给玩家. 查看 [这里](https://minecraftjson.com/) 可快速掌握JSON.                                                                                                                                 |
| `[refresh]`                                              | 刷新菜单.                                                                                                                                                                                       |
| `[broadcastsound] <声音>`                                  | 播放声音给服务器的所有玩家.                                                                                                                                                                              |
| `[sound] <声音>`                                           | 播放声音.                                                                                                                                                                                       |
| `[takemoney] <数量>`                                       | 拿走玩家的钱. 需要安装[Vault](https://www.spigotmc.org/resources/34315/).                                                                                                                             |
| `[givemoney] <数量>`                                       | 给玩家钱. 需要安装[Vault](https://www.spigotmc.org/resources/34315/).                                                                                                                               |
| `[meta] <set/remove/add/subtract/switch> <关键字> <类型> <值>` | 修改玩家的meta. `add/subtract` 用于数字类型. `switch` 用于Boolean类型, 类型只有 true/false. 查询 [这里](https://wiki.helpch.at/clips-plugins/deluxemenus/options-and-configurations/requirements#has-meta) 获取更多信息. |

### **行为标签**

这些标签可以跟行为一起添加 (例如 `- '[message] example<delay=20>'`).

| 标签              | 描述                                |
| --------------- | --------------------------------- |
| `<delay=<时间>>`  | 设置行为延迟 (单位Ticks, 20 ticks = 1 秒). |
| `<chance=<几率>>` | 设置触发行为的几率.                        |

## **公共设置**

### **调试模式**

> ```
> debug: BOOLEAN
> ```
>
> > **默认值:** `false`

启用调试模式，将会发送调试信息于后台.

### **检查更新**

> ```
> check_updates: BOOLEAN
> ```
>
> > **默认值:** `true`

启用/关闭检查插件的更新，并且通知全部OP是否有可用的更新


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://deluxemenu.wiki.complexstudio.net/xuan-xiang-pei-zhi.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
