# 指令 & 权限

这里展示的所有 **Tab** 可以提供的指令。它们中的部分需要玩家拥有其配套的权限。如果你在 **BungeeCord** 上安装了 **TAB**，那么请使用 **/btab** 指令而不是 **/tab**。需要额外注意的是，**BungeeCord** 上的权限是和子服是完全独立的。

## 列表

### /tab reload

* **权限:** `tab.reload`
* **介绍:** 卸载本插件，然后读取被修改后的配置文件并重新加载插件。

### /tab <玩家/组/玩家uuid> <名称> <属性> \[值]

* **权限:** `tab.change.<property>`
* **介绍:** 为一个组或者玩家更改其对应属性的值。如果没有提供值，那么代表为该组或者玩家删除对应的属性。

**属性**

* 对于 Tab 列表: `tabprefix`，`customtabname` 和 `tabsuffix`。
* 对于名称标签: `tagprefix` 和 `tagsuffix`。
* 当[ 无限制名称标签模式](/tab-wiki/core-features/wu-xian-zhi-ming-cheng-biao-qian-mo-shi.md) 被启用后，还可额外提供的属性: `abovename`，`belowname` 和 `customtagname`。

**注意**

* `玩家uuid` 参数需要一位 **在线玩家** 名称来应用更改的属性。
* 如果你在输入指令时没有输入 `值`，那么对应的 `属性` 就会被移除。

### /tab <玩家/组/玩家uuid> <名称> remove

* **权限:** `tab.remove`
* **介绍:** 移除该组或者玩家的所有数据。

**注意**

* `玩家uuid` 参数需要一位 **在线玩家** 名称来移除数据。

### /tab debug \[玩家]

* **权限:** `tab.debug`
* **介绍:** 展示服务端的版本、插件版本、权限组选择逻辑和排序类型。 如果还填写了 **<玩家>** 参数，则额外展示有关该玩家的以下信息：
  * 排序值 & 描述，如果玩家没有被正确排序，那么它会带来很有用的信息以帮助查看哪里出现了错误。
  * 使用 [分组](/tab-wiki/getting-start/fen-zu.md) 功能后玩家所在的首要组。
  * 所有该玩家的配置属性列表，它们的值和来源。

### /tab cpu

* **权限:** `tab.cpu`
* **介绍:** 显示 **10** 秒后插件的大致 **CPU** 使用率。有些部分是无法测量的，因此显示的值略低于实际值。它还包括占位符的使用，可以通过增加刷新间隔来优化，[点击这里](/tab-wiki/advanced/you-hua-cha-jian.md) 以了解详情。

### /tab announce bar <名称> <时长>

* **权限:** `tab.announce.bar`
* **介绍:** 给所有在服务器上的玩家展示配置文件中指定 `名称` 的 **`BOSS`**`条信息`，可指定持续 `时长`，以秒作单位。

### /tab send bar <玩家> <名称> <时长>

* **权限:** `tab.send.bar`
* **介绍:** 向指定 `玩家` 展示指定 `名称` 的 **`BOSS`**`条` 信息，可指定持续 `时长`，以秒作单位。

### /tab announce scoreboard <名称> <时长>

* **权限:** `tab.announce.scoreboard`
* **描述:** 向所有玩家展示指定 `名称` 的 `计分板`，可指定持续 `时长`，以秒作单位。

### /tab scoreboard show <名称> \[玩家]

* **权限:** `tab.scoreboard.show` 作用于个人调整 `tab.scoreboard.show.other` 作用于对其他玩家调整
* **描述:** 展示指定 `名称` 的 `计分板`，当 `玩家` 值为空时作用于个人，否则作用于指定的 `玩家`。

### /tab ntpreview

* **权限:** `tab.ntpreview`
* **描述:** 在开启无限制名称标签模式后，玩家头顶栏将通过盔甲架显示而不是原版的名称标签，你的客户端将只能看到你的玩家名称而看不到名称标签上方和名称标签下方的内容。你可以通过该指令查看你头顶栏现在的盔甲架（PS：即可以看到显示的内容），这样你就可以知晓你的头顶栏是否按照你的预期工作。

**注意**

* 盔甲架的移动有一些延迟。这取决于延迟和移动动画。这个延迟在其他玩家不会出现，只有自己才会发现。
* 这个指令是一个开关。

### /tab parse <文本>

* **权限:** `tab.parse`
* **描述:** 替换所有的变量符 (包括内部和外部变量符) 为所给的 `文本`。可以测试一个变量符能否正常工作。

### /tab setcollision <玩家> \<true|false>

* **权限:** `tab.setcollision`
* **描述:** 设置 `玩家` 是否会和其他实体碰撞，可以修改为 `true` 或者 `false`。

### 额外提供的权限

* `tab.admin` - 允许玩家使用所有 **Tab** 的指令。
* `tab.bypass` - 如果 per-world-playerlist 启用，拥有该权限的玩家照样可以看到全局玩家列表。per-server-playerlist 同理。
* `tab.staff` - 允许该玩家计入 `%staffonline%` (和 `%canseestaffonline%`) 统计的 staff 在线数量。
* `tab.spectatorbypass` - 如果 [allow-spectator-bypass-permission](https://github.com/NEZNAMY/TAB/wiki/config.yml#do-not-move-spectators-allow-spectator-bypass-permission) 启用，那么该权限就对你有用。
* `tab.scoreboard.toggle` - 允许玩家切换计分板开关。
* `tab.scoreboard.toggle.other` - 允许玩家为其他玩家切换计分板开关。
* `tab.bossbar.toggle` - 允许玩家切换Boss条。
* `tab.tabcomplete` - 允许玩家在使用 `/tab` 或者 `/btab` 指令时拥有 Tab 补全功能。
* `tab.seevanished` - 允许玩家在共用玩家列表中查看其他隐身的玩家。


---

# 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/tab-wiki/getting-start/zhi-ling-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.
