# 指令与权限

## 用户指令

*请注意：所有的用户指令的权限节点默认都是给予给玩家的，如果你不想要玩家拥有某个指令的权限节点，你可以给予该权限节点的负权限给玩家。*

* `/elitemobs` / `/em`

主指令，在开启 EliteMobs 菜单功能情况下将会打开菜单。你也可以使用 `/em menu` 打开 EliteMobs 的菜单。

* `/adventurersguild` / `/ag`

将玩家传送到冒险家大厅，如果没有安装该地图，将会打开冒险家公会的菜单。

* `/shareitem`

将物品展示到聊天框，其他玩家可以看到该物品的属性信息。

* `/em help`

展示 EliteMobs 的所有指令。在开启 EliteMobs 菜单功能情况下所有子指令都会指引到  `/em`  指令。

* `/em wallet`

展示玩家当前精英币。

* `/em pay <玩家名称> <数量>`

将自己的精英币转账给其他玩家。

* `/em updateitem`

更新物品，如果服主调整了 EliteMobs 某个武器或者盔甲等，那么玩家就需要这个指令来更新他的物品。

* `/em spawntp`

将玩家传送到服务器主城（在 `config.yml` 中设置，非冒险家大厅）。

### NPC 指令

下面的这些指令只会在你没有安装冒险家大厅地图情况下生效。我非常推荐你安装这个地图，这样玩家就可以与这些指令相对应的 NPC 处使用对应功能，而不需要玩家一一记住这些繁杂的指令。

* `/em rank`

打开冒险家公会等级菜单。

* `/em shop`

打开 EliteMobs 的随机战利品物品商店。

* `/em customshop`

打开 EliteMobs 的固定战利品物品商店。

* `/em repair`

打开 EliteMobs 的修复菜单，可以修复 EliteMobs 中的武器或者盔甲等。

* `/em enhance`

打开 EliteMobs 的强化菜单，可以在此使用升级球来强化（也就是升级）自己的武器或者盔甲。

* `/em refine`

打开 EliteMobs 的精炼菜单，可以让两个同等级升级球转换为一个更高等级的升级球。

* `/em smelt`

打开 EliteMobs 的熔炼菜单，可以让25个同等级的卷轴转换为一个同等级的升级球。

* `/em scrap`

打开 EliteMobs 的回收菜单，你可以在这里回收你不需要的 EliteMobs 的武器或者盔甲等，每次回收都有 50% 几率让你获得一个同等级的卷轴。

* `/em unbind`

打开 EliteMobs 的解除灵魂绑定菜单。

### 服务器内玩家指令

**这些指令只能在服务器内以玩家身份执行，无法在控制台执行。以下指令被区分为可识别参数的指令和不可识别参数的指令。可识别参数的指令的参数是你能够在 EliteMobs 获取到的，而不可识别参数的指令是插件内部调用获得的，你无法实际获取到，这种指令只能在 /em 菜单内由插件自行使用，无法在 EliteMobs 以外的地方使用。**

#### 可识别参数的指令

* `/em dungeontp <地牢id>`

将玩家传送到指定地牢。请注意：这个指令是用于 `/em` 菜单的，因为玩家自己很难猜到你所设置的地牢id。地牢id的参数值等同于 `~/plugins/EliteMobs/dungeonpackages/`  各个地牢文件夹的名称。

#### 不可识别参数的指令

* `/em quest accept <任务ID>`

接受指定任务。

* `/em quest track <任务ID>`

追踪指定任务的最新进度。

* `/em quest complete <任务ID>`

提交指定任务。

* `/em quest leave <任务ID>`

放弃指定任务、

* `/em trackcustomboss <uuid>`

追踪指定自定义怪物，这些用于 `/em` 菜单的，因为你不可能获取到怪物的uuid参数值。

## 管理员指令

\> > > `elitemobs.*` - 事实上你只需要给管理员这个指令即可万事大吉！< < <

* `/em setup`

打开 EliteMobs 的主配置菜单。

* `/em setup area <区域名称>`

将地牢或者冒险家大厅地图的区域使用 WorldGuard 保护。事实上如果你按照本 Wiki 推荐的方法安装地牢或者冒险家大厅，你根本不需要这个指令。

* `/em spawnelite <实体类型> <等级> <能力1> <能力2> <能力3>`

生成一只拥有指定能力、怪物的指定实体类型的精英怪物，例如一只20级的精英僵尸。

* `/em spawnlocationelite <实体类型> <等级> <x> <y> <z> <能力1> <能力2> <能力3>`

同上，只是多了指定坐标。

* `/em spawncustom <文件名称>`

生成一只自定义怪物。

* `/em spawncustomlevel <文件名称> <等级>`

同上，只是多了指定等级。

* `/em spawnlocationcustom <文件名称> <世界名称> <x> <y> <z>`

同上上，只是多了指定位置。

* `/em spawnlocationcustomlevel <文件名称> <等级> <世界名称> <x> <y> <z>`

同上上，只是多了指定等级。

* `/em spawnsuper <实体类型>`

生成一只指定实体类型的超级生物。

* `/em addSpawnLocation <文件名称>`

给指定自定义怪物增加新的生成点。

* `/em addRelativeSpawnLocation <怪物文件名称> <地牢名称>`

给指定自定义怪物在以 .schemastic 为结构的地牢中增加新的生成点，如果是世界结构，请使用前面的指令。如果你并不打算将你的地牢再次分享给其他用户，你也可以照样使用前面的指令，后文不再赘述。

* `/em addTreasureChest <文件名称>`

在所在位置设置新的宝箱。

* `/em addRelativeTreasureChest <宝箱文件名称> <地牢文件名称>`

同上，只是以 .schemastic 结构的地牢使用。

* `/em setLeashRadius <文件名称> <半径>`

生成一个随机BOSS。

* `/em remove`

移除所有 EliteMobs 的实体。

* `/em debug <名称>`

为指定的玩家或者自定义怪物打开 debug 模式。

* `/em event <事件名称>`

在所在位置开始指定事件。

* `/em spawnnpc <NPC文件名称>`

在所在位置生成指定NPC。

* `/em stats`

查看当前所有 EliteMobs 的怪物和玩家的属性。

* `/em getloot`

打开一个可以获得所有 EliteMobs 当前的固定战利品的菜单。

* `/em getloot <文件名称>`

获得指定固定战利品。

* `/em giveloot <文件名称> <玩家>`

给指定固定战利品给指定玩家。

* `/em simloot <等级>`

模拟一次从指定等级的精英怪物

* `/em simloot <等级> <次数>`

同上，只是指定次数而不是只一次。

* `/em version`

查看插件的当前版本。

* `/em reload`

重启插件。

* `/em killaggressive`

击杀所有 EliteMobs 的主动攻击的实体，也就是僵尸等怪物。

* `/em killaggressive <半径>`

同上，但是只指定半径内的实体。

* `/em killpassive`

击杀所有 EliteMobs 的被动攻击的实体，往往就是超级生物。

* `/em killpassive <半径>`

同上，但是只指定半径内的实体。

* `/em killtype <实体类型>`

击杀指定实体类型的 EliteMobs 实体。

* `/em killtype <实体类型> <半径>`

同上，但是只指定半径内的实体。

* `/em gettier <等级>`

获得指定等级的战利品，用于测试。

* `/em money add <玩家名称> <数量>`

为指定玩家添加指定数量的精英币。

* `/em money addall <数量>`

为所有在线玩家添加指定数量的精英币。

* `/em money remove <玩家名称> <数量>`

减少指定玩家的指定数量的精英币。

* `/em money set <玩家名称> <数量>`

更改指定玩家的精英币数量为指定数值。

* `/em setrank <玩家> <声望> <冒险家公会等级>`

设置指定玩家的声望和冒险家公会等级。

* `/em discord`

获取插件的 Discord 频道链接。

* `/em discord <消息>`

国内无用。

* `/em forceunbind`

解除绑定当前物品。

* `/em relativecoords <地牢名称>`

获取指定地牢的坐标。

* `/em wallet <玩家>`

查看指定玩家的精英币数量。

* `/em fireball`

生成一个火球。

* `/em registerblocks <regional_boss_file.yml> <on_spawn/on_remove>`
* `/em registerblocksedit <regional_boss_file.yml> <on_spawn/on_remove>`
* `/em registerblocksarea <regional_boss_file.yml> <on_spawn/on_remove>`
* `/em registerblocksareaedit <regional_boss_file.yml> <on_spawn/on_remove>`
* `/em cancelblocks`

查看区域 Boss相关页面以了解。

* `/em debugmode`

是否开启 debug 模式。

### 服务器内管理员指令

**这些指令只能在服务器内以玩家身份执行，无法在控制台执行。**

* `/em setup done`

停止显示 EliteMobs 一进入服务器要求完成首次设置的提示。

* `/em setup minidungeon <迷你地牢名称>`

安装一个迷你地牢。

* `/em setup minidungeon <迷你地牢名称> noPaste`

同上，但不会安装 WorldEdit schematic 结构（也就是地牢地图）。

* `/em setup minidungeon <迷你地牢名称>`

卸载一个迷你地牢。

* `/em setup unminidungeon <minidungeonName> noPaste`

同上，但不会卸载 WorldEdit schematic 结构（也就是地牢地图）。

* `/em trace <uuid>`

追踪指定自定义怪物的生成信息，需要开启 debug 模式。

* `/em debugtp <uuid>`

传送到指定自定义怪物的附近，需要开启 debug 模式。

* `/em generateresourcepack`

生成资源包，只有在使用自定义模型情况下才会使用。

* `/em updateresourcepack`

更新资源包。

## 权限

```
permissions:
  elitemobs.*:
    description: Gives access to all elitemobs commands
    children:
      elitemobs.stats: true
      elitemobs.checktier.others: true
      elitemobs.versionnotification: true
      elitemobs.currency.check.others: true
    default: op
  elitemobs.stats:
    description: Allows players to run /elitemobs stats
    default: op
  elitemobs.version:
    description: Allows players to run /elitemobs version
    default: true
  elitemobs.shop.npc:
    description: Allows players to interact with NPCs for dynamic shops
    default: true
  elitemobs.shop.command:
    description: Allows players to open the dynamic shop menu through commands
    default: true
  elitemobs.customshop.npc:
    description: Allows players to interact with NPCs for dynamic shops
    default: true
  elitemobs.customshop.command:
    description: Allows players to open the dynamic shop menu through commands
    default: true
  elitemobs.currency.pay:
    description: Allows players to run /elitemobs pay [username] [amount]
    default: true
  elitemobs.currency.check:
    description: Allows players to run /elitemobs wallet
    default: true
  elitemobs.currency.check.others:
    description: Allows players to run /elitemobs check [username]
    default: op
  elitemobs.events:
    description: Allows players to launch all events
    default: true
  elitemobs.checktier.others:
    description: Allows players to run /elitemobs checktier [player]
    default: op
  elitemobs.gettier:
    description: Allows players tu run /elitemobs gettier [tier]
    default: op
  elitemobs.versionnotification:
    description: Allows players to get notified about plugin updates
    default: op
  elitemobs.adventurersguild.teleport:
    description: Allows players to teleport to the adventurer's guild hub using /ag
    default: true
  elitemobs.adventurersguild.command:
    description: Allows players to rank menu using the /em adventurersguild command
    default: true
  elitemobs.rank.command:
    description: Allows players to open the rank menu through /em rank
    default: true
  elitemobs.rank.npc:
    description: Allows players to access the /em rank menu through NPCs
    default: true
  elitemobs.quest.command:
    description: Allows players to take on quests via command
    default: true
  elitemobs.quest.npc:
    description: Allows players to take on quests via EliteMobs NPC
    default: true
  elitemobs.dungeontp:
    description: Allows players to teleport to an elitemobs-set location
    default: true
  elitemobs.spawntp:
    description: Allows players to teleport to the default spawn location of the server.
    default: true
  elitemobs.back.npc:
    description: Allows players to interact with an npc to go back to a previous location.
    default: true
  elitemobs.shareitem:
    description: Shares a held Elite Item on chat.
    default: true
  elitemobs.scrap.npc:
    description: Allows players to scrap items at an npc
    default: true
  elitemobs.scrap.command:
    description: Allows players to scrap items using a command
    default: true
  elitemobs.smelt.command:
    description: Allows players to smelt items using a command
    default: true
  elitemobs.smelt.npc:
    description: Allows players to smelt items using an npc
    default: true
  elitemobs.repair.command:
    description: Allows players to use the repair command to open the menu for repairing elite items
    default: true
  elitemobs.repair.npc:
    description: Allows players to interact with the NPC for repairing items
    default: true
  elitemobs.refiner.command:
    description: Allows players to use the refiner command to open the menu for upgrading Elite Scrap
    default: true
  elitemobs.refiner.npc:
    description: Allows players to interact with the NPC for upgrading Elite Scrap
    default: true
  elitemobs.enhancer.command:
    description: Allows players to use the enhancer command to open the menu for upgrading Elite Items
    default: true
  elitemobs.enhancer.npc:
    description: Allows players to interact with the NPC for upgrading Elite Items
    default: true
  elitemobs.unbind.command:
    description: Allows players to use the unbind command to open the menu for unbinding Elite Items
    default: true
  elitemobs.unbind.npc:
    description: Allows players to interact with the unbinder NPC for unbind Elite Items
    default: true
  elitemobs.soulbind.bypass:
    description: Allows users to bypass the soulbind restrictions. Only recommended for admins!
    default: false
  elitequest.*:
    description: Used for quest-related permissions
    default: false
    op: false
```


---

# 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/elitemobs-wiki/zhi-nan/zhi-ling-yu-quan-xian.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.
