HomeJavaModsTab Player Highlighter
Tab Player Highlighter
ModsJava

Tab Player Highlighter

by Stormy-RPG · on Modrinth

Модификация для выделения определённых игроков в табе по UUID. Modification to highlight certain players in the table by UUID.

⬇ Download on Modrinth
Создано для RelaksLand

RU

Важно!

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

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!

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.

Quick facts

Install steps are the general flow for this file type — How to install Minecraft Java mods & modpacks walks through it step by step.

Verified by MCModsHub

These come from our own check of the pack file, not from the source page.

Explore more