TAB 的顶部和底部

关于

Minecraft 在 1.8 添加了在 TAB 的上方和下方添加文本的功能,同时这意味着在 1.7 及以下版本该功能不可用。

启用

要启用这个功能,打开 config.yml 并设置

header-footer:
  enabled: true

配置

通用设置

下面的是一般常用的配置:

header-footer:
  header:
  - "This is the first line of header"
  - "2nd line of header"
  footer:
  - "This is the first line of footer"
  - "2nd line of footer"

这也是每个服主的默认 TAB 显示内容,除非它被其他的插件覆盖了。

各世界、服务器不同顶部和底部

header-footer:
  per-world:
    <你的任意世界>:
      header:
        - "Header in specified world"
      footer:
        - "Footer in specified world"
  per-server:
    <你的任意服务器>:
      header:
        - "Header in specified server"
      footer:
        - "Footer in specified server"

如果你想要多个服务器、世界共用一个头部和底部,只需在它们之间使用; 符号相隔。 如果你的世界或者服务器拥有相同的前缀,你可以使用 * 代表其剩余的部分 示例:

per-world:
  world1;world2:
    header:
      - "Shared header in worlds world1 and world2"
  lobby-*:
    header:
      - "Header in all worlds starting with lobby-"

PS:这代表 lobby-1、lobby-2、lobby-xxx 都会使用。

注意: 要使得各世界不同头部和底部功能在 BC 上使用,你需要在子服上安装 TAB-Bridge 插件。

各玩家、组不同头部和底部

groups.yml

MyGroup:
  header:
    - "This is a header for MyGroup group"
  footer:
    - "This is a footer for MyGroup group"
per-world:
  MyWorld:
    TestGroup:
      header:
        - "Header for group TestGroup in world MyWorld"

玩家也组也是一样的,只不过它们在 users.yml

在指定世界、服务器禁用

header-footer:
  disable-in-worlds:
    - disabledworld
  disable-in-servers:
    - disabledserver

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

header-footer:
  disable-in-worlds:
    - WHITELIST
    - enabledworld

注意: 在指定服务器关闭仅支持 BungeeCord。在 BC 上市在指定世界关闭需要在所有子服安装 TAB-Bridge 插件。

最后更新于