▶️ ЗАБЕРИ СВОИ 8 ПОДАРКОВ 🎁 ПРИ СОЗДАНИИ СВОЕГО МАЙНКРАФТ СЕРВЕРА
Датапаки/Detect AFK Players
Detect AFK Players

Detect AFK Players

AFK/idle detection that's extremely performant · Players go AFK after 3 minutes (configurable) without moving their mouse · Extend with plenty of add-ons!

18.3K
52
Все версииVersion 1.2

Version 1.2

Release1 г. назад

Список изменений

This version of the data pack maintains compatibility with previous versions but changes a lot internally.

This changelog doesn't go into much detail. For more information, read the documentation. A copy is included in a download of this data pack.

  • Improved the responsiveness of the AFK detection

    • The data pack is performant enough that on a low spec system it can easily run for upwards of 40 players on every tick while only increasing the MSPT by about 1 or 2. I'm only increasing the rate of checking from every 5 seconds to 1.5 seconds (1 in every 30 ticks)
  • Added an afk trigger

    • Admins can run /scoreboard players enable <username> afk to allow a player to manually become AFK
  • Added a new afk.ticks scoreboard, which can be used to track the amount of ticks that players have been AFK

  • A player exiting and re-joining the game is counted as active

  • Players leaving the game can be detected by add-ons without implementing a custom scoreboard

  • Added a configurable threshold for players becoming AFK, instead of hard-coding 3 minutes

    • An admin can run /scoreboard players set .threshold afk.settings <ticks>
    • 3600 ticks by default, which is 3 minutes
  • Changed scoreboard objective names. The names documented in the documentation are now stable and part of the public API.

Файлы

afk+v1.2.0+mc1.20.3-1.21.4.zip(14.72 KiB)
Основной
Скачать

Метаданные

Канал релиза

Release

Номер версии

1.2

Загрузчики

Версии игры

1.20.3–1.21.5

Загрузок

329

Дата публикации

1 г. назад

Загрузил

ID версии

Главная