Перейти к содержимому
Mineforgian

AFK Dim Names

Dim player names when they go AFK. Shows above their heads and in the server list.

Загрузки
11K
Подписчики
31
Обновлён
5 апреля 2025 г.
Лицензия
MIT

Опубликован 25 февраля 2024 г.

AFK Dim Names

An add-on for Detect AFK Players.

Dims player names when they go AFK. This works by adding them to a team called afk. If players are on a team already when they go AFK, they will not be added to the AFK team.

The afk team can be modified. An example is to add the "AFK" prefix or suffix to player names:

/team modify afk prefix "AFK "

By default, only the name color is changed. This is to give you the freedom to decide what you do and don't need!

https://cdn.modrinth.com/data/cm4wuX9d/images/197665428560d32181c6b9de2af36edb9f047462.jpeg

To disable collision with AFK players:

/team modify afk collisionRule never

This datapack is stupidly simple and is a good place to start if you want to see a reference for how to integrate with Detect AFK Players. The code is MIT licensed and open source, so feel free to modify it as you want.

Ченджлог

1.3.0+modРелиз1.21.6, 1.21.7, 1.21.8 · 5 апреля 2025 г.

This version changes how the away/back logic works to remove the need for a permanently-running loop. The loop only runs while there are players tagged as afk. The data pack is now much lazier!

1.3.0Релиз1.21.6, 1.21.7, 1.21.8 · 5 апреля 2025 г.

This version changes how the away/back logic works to remove the need for a permanently-running loop. The loop only runs while there are players tagged as afk. The data pack is now much lazier!

1.2.0+modРелиз1.21.3, 1.21.4, 1.21.5 · 5 апреля 2025 г.
  • Added a loop to remove offline players from the afk team, fixing players that left while AFK re-joining and showing the afk team color and prefix/suffix in chat.
1.2.0Релиз1.21.3, 1.21.4, 1.21.5 · 5 апреля 2025 г.
  • Added a loop to remove offline players from the afk team, fixing players that left while AFK re-joining and showing the afk team color and prefix/suffix in chat.
1.1.0+modРелиз1.21.3, 1.21.4, 1.21.5 · 30 марта 2025 г.

This update is a small but significant change: when players are already in a team, it will not put them in the afk team. When players are not in the afk team when returning, they will not be removed from their team.

The behavior <1.1 would naively override the team, and then leave whatever team the player was in regardless of if it had changed when the player returned.

I believe this new behavior is an improvement, but if it causes issues for you, please open an issue on GitHub and I'll look into it ASAP. However, this should be a more reliable system over all.

Tested on 1.18 and 1.21

1.1.0Релиз1.21.3, 1.21.4, 1.21.5 · 7 августа 2024 г.

This update is a small but significant change: when players are already in a team, it will not put them in the afk team. When players are not in the afk team when returning, they will not be removed from their team.

The behavior <1.1 would naively override the team, and then leave whatever team the player was in regardless of if it had changed when the player returned.

I believe this new behavior is an improvement, but if it causes issues for you, please open an issue on GitHub and I'll look into it ASAP. However, this should be a more reliable system over all.

Tested on 1.18 and 1.21

1.0.1Релиз1.20.6, 1.21, 1.21.1 · 17 июня 2024 г.

Updated to include support for 1.21.0

1.0Релиз1.20.2, 1.20.3, 1.20.4 · 25 февраля 2024 г.

Version 1 of this extremely simple datapack. Unless Mojand makes a drastic change to the team command, I don't imagine there will need to be any updates (except for bumping the maximum compatible pack version)

Комментарии

Загружаем…