# 指令&权限

如果跳过了上一节中有关命令的内容，此处会列出命令及其权限

## 附魔权限

想使一个附魔只能让某些玩家获取？这看起来有点难办，但其实非常简单。

所有附魔都有唯一的权限名和配置文件名。这只是一个移除了下划线的核心词，例如：`Curse of Hunger`有核心词`hunger_curse`，有权限名`hungercurse`。相似地，`Water Artifact`有核心词`water_artifact`，有权限名`waterartifact`。

## 所以我该如何实际操作？

从附魔台上获得附魔的权限如下：

```
ecoenchants.fromtable.<permission name>
```

默认情况下，所有附魔都可用，所有玩家都拥有此权限：

```
ecoenchants.fromtable.*
```

## 额外加成

想给某些玩家带来额外加成吗？下面有4个权限可以减少咒术（spell）冷却时间。

冷却时间减少25%**`ecoenchants.cooldowntime.75`**

冷却时间减少50%**`ecoenchants.cooldowntime.half`**

冷却时间减少66%**`ecoenchants.cooldowntime.third`**

冷却时间减少75%**`ecoenchants.cooldowntime.quarter`**

## 随机附魔

给你持有的物品随机附魔

```
/randomenchant
```

权限

```
ecoenchants.randomenchant
```

如果你设置了hard cape（单个物品最大附魔数），默认玩家将无法绕过它。但这可以通过授予某些玩家此权限来更改：

```
ecoenchants.randomenchant.bypasshardcap
```

## 给予一本随机附魔书

给予玩家一本随机附魔书

```
/ecoenchants giverandombook [player] <rarity>
```

权限:

```
ecoenchants.command.giverandombook
```

## 获取附魔信息

```
/enchantinfo [附魔]
```

权限：

```
ecoenchants.command.enchantinfo
```

## 本地化管理

更多信息请阅读

{% content-ref url="/pages/-MeVdjsAvOnpDR01XlEE" %}
[本地化和翻译](/ecoenchants/pei-zhi/yu-yan-he-fan-yi.md)
{% endcontent-ref %}


---

# 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://xiaomomi.gitbook.io/ecoenchants/shi-yong-fang-fa/zhi-ling.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.
