Compatibility
Minecraft: Java Edition
Platforms
Supported environments
Tags
Creators
Details
Features
Players are marked as AFK, displayed next to the name
Setting to get announcements when players are AFK
Adjustable time until you are AFK
/trigger afk to instantly be AFK
Setting to choose if players get kicked when AFK or not
Config
/trigger afk_announcer.config
Compatible with Show Dimension In Name
Compatible with Invisible Player Name
Config Pre 1.21.6
/trigger afkannouncer.config
/trigger afkannouncer.color.config
To uninstall run: /function afkannouncer:uninstall
Pre 1.21 Config
Config 1.21 and lower
To adjust the duration before being marked as AFK:
/trigger afk_timer set value
value = seconds until you are AFK
default = 5 minutes = 300 seconds
To disable the AFK Announcer for yourself, you can set the value to 0
To change if you get a notification when you or someone else is AFK:
/trigger afk_notification set value
value = 1 = notification --> default
value = 2 = no notification
To change if you should be invulnerable when AFK:
/scoreboard players set &afk_invulnerable afk_announcer.config value
value = 0 = not invulnerable when AFK --> default
value = 1 = invulnerable when AFK
For the following to work you need to set function-permission-level to 3
To enable that players will always get kicked when AFK:
/scoreboard players set &afk_kick afk_announcer.config value
value = 0 = players do not get kicked when AFK --> default
value = 1 = all players get kicked when AFK
To enable so players can choose if they want to be kicked or not:
/scoreboard players set &afk_kick_player_control afk_announcer.config value
value = 0 = players can't choose if they want to be kicked or not --> default
value = 1 = players can choose
Individual player setting to choose if you want to be kicked or not:
/trigger individual_afk_kick set value
value = 0 = the player will not get kicked --> default
value = 1 = the player will get kicked
To uninstall:
/function afkannouncer:uninstall
To disable the AFK Announcer for yourself, you can set the value to 0
To change if you get a notification when you or someone else is AFK:
/trigger afk_notification set value
value = 1 = notificcation --> default
value = 2 = no notification
To change if you should be invulnerable when AFK:
/scoreboard players set &afk_invulnerable afk_announcer.config value
value = 0 = not invulnerable when AFK --> default
value = 1 = invulnerable when AFK
For the following to work you need to set function-permission-level to 3
To enable that players will always get kicked when AFK:
/scoreboard players set &afk_kick afk_announcer.config value
value = 0 = player do not get kicked when afk -> default
value = 1 = all players get kicked when afk
To enable so players can choose if they want to be kicked or not:
/scoreboard players set &afk_kick_player_control afk_announcer.config value
value = 0 = players can't choose if the want to be kicked or not --> default
value = 1 = players can choose
Individual player setting to choose if you want to be kicked or not:
/trigger individual_afk_kick set value
value = 0 = the player will not get kicked --> default
value = 1 = the player will get kicked
To uninstall:
/function afkannouncer:uninstall









![Tab List showing players, one of them is marked with [AFK]](https://wsrv.nl/?url=https%3A%2F%2Fassets.jodek.dev%2Fimage%2Fafk_announcer%2Ftab_list.png&n=-1)
![Chat message showing: Jodek is AFK / Jodek [AFK] is no longer AFK!](https://wsrv.nl/?url=https%3A%2F%2Fassets.jodek.dev%2Fimage%2Fafk_announcer%2Fchat_message.png%3Fv%3D2&n=-1)

![Tab List showing players, one of them is marked with [AFK] while also showing Overworld at the players name](https://wsrv.nl/?url=https%3A%2F%2Fassets.jodek.dev%2Fimage%2Fafk_announcer%2Ftab_list_sdin.png&n=-1)
![Chat message showing: Jodek is AFK / Jodek [AFK] is no longer AFK! while also showing Overworld at the players name](https://wsrv.nl/?url=https%3A%2F%2Fassets.jodek.dev%2Fimage%2Fafk_announcer%2Fchat_message_sdin.png%3Fv%3D2&n=-1)