# 条件配置

**要在 prices 选项中适用 conditions 选项，你必须在 config.yml 中打开 check-conditions 选项。**

该选项的格式如下：

```
conditions:
  <次数>:
    - <条件>
```

次数为数字，例如 1 对应第一次抽奖，条件请见**条件**一节。

看不懂？来个示例：

```
conditions:
  1:
    - 'permission: group.default'
  2:
    - 'world: world'
    - 'permission: group.default'
```

你也可以写成这种格式，这种格式的话，不考虑抽奖次数，无论是第几次抽奖，都要满足对应条件：

```
conditions:
  - 'permission: hi.hi'
```


---

# 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://spintowin.superiormc.cn/jian-ti-zhong-wen-2/configs/tiao-jian-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.
