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](https://github.com/clo4/datapacks/issues) and I'll look into it ASAP. However, this should be a more reliable system over all.
Tested on 1.18 and 1.21
Developer information
Projects on Modrinth are automatically available through a Maven repository for use with JVM build tools such as Gradle.
maven { name = "Modrinth"; url = "https://api.modrinth.com/maven" }