Tab Player Highlighter

模组

· 作者 Stormy-RPG

用于通过 UUID 在标签页中突出显示特定玩家的模组。

0 本站下载 0 关注 更新于 2 个月前

最新 2.2.4-26.2 · 26.2 · Fabric

一键开服(送7天)
Создано для RelaksLand

RU

Важно!

  • Для работы Tab Player Highlighter необходима библиотека Cloth Config API.
  • Рекомендуется использовать Notepad++ для редактирования JSON конфигурации.
  • UUID игрока можно узнать на NameMC.

Что делает мод?

Spoiler

TPH — модификация, позволяющая выделить в табе игры определенных игроков по UUID.

Выглядит это следующим образом:

пример работы мода

Настройка конфига

Spoiler

Файл конфигурации находится по пути:

.minecraft\config\tab_player_highlighter.json

И выглядит следующим образом:

{
  "onlineMod": false,
  "API_URL": "localhost:3000/get_roles",
  "playersPrefixes": {
  }
}

На место UUID в конфиге мода Tab Player Highlighter вы должны указать необходимые вам идентификаторы игроков и задать им роли. Вы можете указать несколько UUID, чтобы выделить нескольких пользователей в игре. Приведу пример, как это должно выглядеть в вашем файле конфигурации:

{
  "onlineMod": false,
  "API_URL": "localhost:3000/get_roles",
  "playersPrefixes": {
    "uuid1": "§a[Admin]",
    "uuid2": "§a[Moderator]",
    "uuid3": "§a[Helper]",
    ...
    "uuid100": "§a[Cheater]"
  }
}

Также, если включить onlineMod, то при заходе на сервер, префиксы игроков будут браться с API_URL, а playersPrefixes будет игнорироваться. Чтобы онлайн-режим работал правильно ответ от API_URL должен быть в JSON и иметь такой вид:

{
  "players": {
    "6a640b67-87f0-456a-8f4d-a65aeb55f4f4": "[Moderator]",
    "53e45cf5-c017-427a-9e67-7b6f00d47219": "§a[Admin]"
  }
}

Соблюдайте правильную структуру текстового файла и ответа от API, чтобы модификация работала корректно.

EN

Important!

  • To use Tab Player Highlighter, you need the Cloth Config API.
  • We recommend using Notepad++ for editing JSON configuration files.
  • You can find player UUIDs on NameMC.

What does the mod do?

Spoiler

TPH is a modification that allows highlighting specific players by UUID in the game's tab list. Here's how it looks:

Example

Config Setup

Spoiler

The configuration file is located at:

.minecraft\config\tab_player_highlighter.json

And looks like this:

{
  "onlineMod": false,
  "API_URL": "localhost:3000/get_roles",
  "playersPrefixes": {
  }
}

In the Tab Player Highlighter mod config, you need to replace the UUIDs with the player IDs you want to highlight and assign them roles. You can specify multiple UUIDs to highlight multiple players in the game. Here's an example of how your configuration file should look:

{
  "onlineMod": false,
  "API_URL": "localhost:3000/get_roles",
  "playersPrefixes": {
    "uuid1": "§a[Admin]",
    "uuid2": "§a[Moderator]",
    "uuid3": "§a[Helper]",
    ...
    "uuid100": "§a[Cheater]"
  }
}

Also, if you enable onlineMod, when joining a server, player prefixes will be fetched from API_URL, and playersPrefixes will be ignored. For online mode to work correctly, the response from API_URL must be in JSON format and look like this: text

{
  "players": {
    "6a640b67-87f0-456a-8f4d-a65aeb55f4f4": "[Moderator]",
    "53e45cf5-c017-427a-9e67-7b6f00d47219": "§a[Admin]"
  }
}

Make sure to maintain the correct file structure and API response format for the modification to work properly.

你是这个资源的作者?登录后可认领此资源。

评论 0

0.0
暂无评分
5 星
0
4 星
0
3 星
0
2 星
0
1 星
0
我的评分

登录后参与评分

还没有评论,来抢沙发吧

评论配图

相似资源