# 价格

## 什么是价格

你的服务器可能使用 Vault 作为经济，同时还有可能使用基于绿宝石的经济，使其更贴切原版，这意味着你的服务器将有多种经济形式，而为了简化这些经济在 eco 系列插件中使用，使得这些经济形式能够统一管理，eco 自带的价格系统诞生了。

## 类型

\*价格的类型填写在 `type` 选项中，包括以下几种：

* `$` 或者 `coins`：代表你的服务器的经济插件所产生的经济形式，\*通常代表 Vault，因为根据 [兼容插件](/auxilor-plugins/tong-yong-xin-xi/jian-rong-cha-jian.md) 一节，这是唯一支持的经济插件。**请注意，不支持 CMI 的 Vault 和经济。**
* `xp` 或者 `exp` 或者 `experience`：代表原版经验值。
* `l` 或者 `levels` 或者 `xplevels` 或者 `explevels`：代表原版等级。
* 使用点数。
* 使用魔法类型。
* 你也可以使用来自 EcoBits 和 UltraEconomy 的自定义货币。
* 使用 物品语句 代表以某种物品作为经济形式。

## 显示名称

你可以为各个价格设置它们的显示名称，但是这相当麻烦，因此与其这样为价格单独设置显示名称：

```yaml
price:
  value: 100 * %player_y%
  type: crystals # EcoBits 中的货币
  display: "&b%value% 水晶 ❖"
```

您也可以打开 `plugins/eco/lang.yml`，添加如下内容：

```yaml
price-display:
  - type: crystals
    display: "&b%value% 水晶 ❖"
```

这样的话，所以类型是 crysteals 的价格都会显示这里设置的名称，无需一个个单独设置了。

## 示例

使用 EcoBits 或者 UltraEconomy 中的某个货币。

```yaml
price:
  value: 100 * %player_y%
  type: crystals # *不需要填写插件名称，直接填写货币 ID
```

使用 EcoItems 中的某个物品。

```yaml
price:
    value: 16
    type: ecoitems:shiny_diamond # 使用了物品语句，改为 diamond 则代表原版钻石
    display: "%value% &f闪亮钻石"
```

使用 5000 点原版经验值。

```yaml
price:
  value: 5000
  type: xp
```

使用 EcoSkills 中的 10 点法力。

```yaml
price:
  value: 10
  type: mana
```


---

# 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://docs.superiormc.cn/auxilor-plugins/tong-yong-xin-xi/jia-ge.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.
