Skip to content

jodeks-datapacks/AFK-Announcer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AFK Announcer

Features

1. Players are marked as AFK --> displayed next to the name

2. Setting to get an announcement when a player is AFK

3. Adjustable time until you are AFK

4. /trigger afk to instatly be AFK

5. Setting to be invulnerable when AFK

6. You can change any color --> config

Config

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 akf_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


To change any color:

Color table

1 - aqua

2 - black

3 - blue

4 - dark_aqua

5 - dark_blue

6 - dark_gray

7 - dark_green

8 - dark_purple

9 - dark_red

10 - gold

11 - gray

12 - green

13 - light_purple

14 - red

15 - white

16 - yellow


Change name color

Color of the normal name

default = white

/scoreboard players set &name_color name_color.jodek value

value = color --> look at color table

Change afk name color

Color of the name when AFK

default = gray

/scoreboard players set &name_color_afk name_color.jodek value

value = color --> look at color table

[AFK] Suffix color

Color of the [AFK suffix]

default = dark_gray

/scoreboard players set &suffix_color_afk name_color.jodek value

value = color --> look at color table


Settings if you have Show Dimension In Name installed

Name color

Change afk name color (overworld)

Color of the name when AFK in the overworld

default = gray

/scoreboard players set &name_color_afk_overworld name_color.jodek value

value = color --> look at color table

Change afk name color (nether)

Color of the name when AFK in the nether

default = gray

/scoreboard players set &name_color_afk_nether name_color.jodek value

value = color --> look at color table

Change afk name color (end)

Color of the name when AFK in the end

default = gray

/scoreboard players set &name_color_afk_end name_color.jodek value

value = color --> look at color table

Prefix color --> [Overworld] - [Nether] - [End]

Change prefix color (overworld)

Color of the prefix when AFK in the overworld

default = green

/scoreboard players set &prefix_color_afk_overworld name_color.jodek value

value = color --> look at color table

Change prefix color (nether)

Color of the prefix when AFK in the nether

default = red

/scoreboard players set &prefix_color_afk_nether name_color.jodek value

value = color --> look at color table

Change prefix color (end)

Color of the prefix when AFK in the end

default = dark_purple

/scoreboard players set &prefix_color_afk_end name_color.jodek value

value = color --> look at color table

Suffix color --> [AFK]

Change suffix color (overworld)

Color of the suffix when AFK in the overworld

default = dark_gray

/scoreboard players set &suffix_color_afk_overworld name_color.jodek value

value = color --> look at color table

Change suffix color (nether)

Color of the suffix when AFK in the nether

default = dark_gray

/scoreboard players set &suffix_color_afk_nether name_color.jodek value

value = color --> look at color table

Change suffix color (end)

Color of the suffix when AFK in the end

default = dark_gray

/scoreboard players set &suffix_color_afk_end name_color.jodek value

value = color --> look at color table


To uninstall:

/function afkannouncer:uninstall

Showcase

Jodek is AFK!

Jodek [AFK] is no longer AFK!

Shows in tab list

Compatible with my Show Dimension In Name datapack/mod

Chat with show dimension in name

Tab list with show dimension in name

Compatible with my Invisible Player Name datapack/mod

Datapack created by Jodek published on modrinth: https://modrinth.com/user/Jodek

Tip

Questions or issues? -> discord server | or create an issue on github