Language

Super Simple AFK

Super Simple AFK

Modrinth

A simple datapack to manage AFK players

41 downloads 1 followers updated 13mo ago
Modrinth
Datapack 1.21.5 – 1.21.5 Utility

This datapack adds a simple afk mechanic, useful for surival servers or other situations where you might want to know who is or isn't around.

Usage

all players have access to the /trigger afk command which will set their status to afk.

Server operators can also change the amount of time until a player is automatically set as afk using /scoreboard players set $time simple_afk.time_until_afk <time in ticks> (defaults to 6000 ticks, which is 5 minutes. There are 20 seconds in a tick)

Developing

If you'd like to use a player's AFK status in another datapack, simply check for one of the following:

  • Players on the simple_afk.afk_players team
  • Players with the simple_afk.afk tag

Custom Commands

if you are using the mod Melius Commands, here is a config file to create a /afk command

{
    "id": "afk",
    "executes": [
        {
            "command": "function simple_afk:messages/go_afk",
            "as_console": false,
            "op_level": 4
        }
    ]
}

Versions

No version history available. Use the Download button to get the latest from the source.

Comments 0

No comments yet. Be the first to share your thoughts.

Download Super Simple AFK

Files are served directly from the original source. Modgrid does not host or modify them.