# AFK Display 😴

#### 🧠 How It Works

The datapack automatically tracks player movement and activity. If a player is inactive for a set amount of time (by default **1 minute**), they are marked as **AFK**.

When this happens:

* A **gray \[AFK] tag** appears next to the player's name in the **player list (Tab menu)**.
* It also appears **above their head** in the world (visible to nearby players).

***

#### 🚶‍♂️ Returning from AFK

As soon as the player **moves**, **jumps**, or **performs any action**, the AFK tag is removed automatically. No manual input is required to toggle it.

***

#### ⚙️ Features

* 🕒 **Automatic Detection** – No need to use commands; the datapack tracks inactivity based on player input.
* 👤 **AFK Name Tag** – Clear visual indicator in the player list and in-world name tag.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://dirkocraft.gitbook.io/dirkocraft/data-packs-and-plugins/afk-display.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
