# 黄色数字

## 关于

![](https://camo.githubusercontent.com/858fab4eb90549e8a229b0208f15522f09df6f06c944b8dbc6b582fff0b29112/68747470733a2f2f696d616765732d6578742d312e646973636f72646170702e6e65742f65787465726e616c2f696f4454465746653971554767385a674e464350496f584e36422d456e62714862305758453932303061382f68747470732f696d6167652e70726e747363722e636f6d2f696d6167652f7738736a523479395168756145636e55357447546d772e706e67)\
在 PLAYER\_LIST（玩家列表） 显示计分板目标选择的值。它提供 2 种显示模式：

* 黄色数字
* 爱心

## 启用

打开 **config.yml** 并设置:

```
yellow-number-in-tablist:
  enabled: true
```

将 enabled 修改为 false 即禁用该功能。

## 配置

`value` 决定显示的值。\
你可以在这里使用任意一个输出数字的变量符。如果你设置为 [`%health%`, `%player_health%` or `%player_health_rounded%`](https://github.com/NEZNAMY/TAB/blob/master/shared/src/main/java/me/neznamy/tab/shared/features/YellowNumber.java#L25-L26) 将会让输出图中样式的爱心血量。

![](https://camo.githubusercontent.com/ca68ad9428ba4cd37720088219d0ccd197a52ababcffa799364cc17471a737bc/68747470733a2f2f696d616765732d6578742d322e646973636f72646170702e6e65742f65787465726e616c2f527857755f356842534c555771533776437653505939506e4e786b5966414d515158776b626936474579552f68747470732f696d6167652e70726e747363722e636f6d2f696d6167652f6564704d3458704f543171335373513576594e6a7a512e706e67)\
如果你想要显示数字而不是爱心，将 vault 设置为 `0%health%` 这样的即可。

## 在指定世界、服务器禁用

```
yellow-number-in-tablist:
  disable-in-worlds:
    - disabledworld
  disable-in-servers:
    - disabledserver
```

要在除了所列的世界外禁用，只需添加 `WHITELIST` 关键词到列表中，这回导致该功能只会在所列的世界中启用。示例：

```
yellow-number-in-tablist:
  disable-in-worlds:
    - WHITELIST
    - enabledworld
```

**注意**: 在指定服务器关闭仅支持 BungeeCord。在 BC 上市在指定世界关闭需要在所有子服安装 [TAB-Bridge](https://www.mc-market.org/resources/21641) 插件。

## 附加事项

**注意 1:** 该功能不会对旁观者模式的隐身玩家有效。要解决此问题，请查看 [旁观者修复](https://docs.superiormc.cn/tab-wiki/core-features/pang-guan-zhe-xiu-fu) 功能。

## 限制

只支持 2 种显示模式 - 数字和爱心。并且数字的颜色只能为黄并且不能修改。\
要想绕过这一限制，请尝试使用[ TAB 后缀对齐](https://docs.superiormc.cn/tab-wiki/core-features/tab-hou-zhui-dui-qi) 功能。&#x20;


---

# 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/core-features/huang-se-shu-zi.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.
