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
Added an afk trigger
/scoreboard players enable <username> afk to allow a player to manually become AFKAdded 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
/scoreboard players set .threshold afk.settings <ticks>Changed scoreboard objective names. The names documented in the documentation are now stable and part of the public API.

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