HomeJavaModsAFK To Spawn
AFK To Spawn
AFKToSpawn

Teleport idlers to spawn, show AFK status (bossbar + tab), per-rank timers, PAPI placeholders, Essentials & Floodgate hooks.
By: Silverninja3_
[​IMG]

afk2.png Afk3.png afk4.png afk5.png

Highlights

Commands

Permissions

Placeholders (PlaceholderAPI)
Use either identifier:


Quick TAB Setup
Recommended (legacy colors):
Code (Text):
tablist-name-formatting:
enabled: true
anti-override: true
formatting: "%luckperms_prefix%%player_name%%afkspawn_coloredsuffix%"
Refresh (optional):
Code (Text):
placeholderapi-refresh-intervals:
"%afkspawn_coloredsuffix%": 100
Important: Do not map the text placeholder to yes/no. Remove blocks like:
Code (Text):
placeholder-output-replacements:
"%afkspawn_suffix%":
"yes": "&c&l AFK"
"no": ""
If TAB blocks team edits, set our config: afk-status.use-team-suffix: false (and use placeholders as above).

Configuration (key parts)
Code (Text):
# Minutes of inactivity before AFK action
afktimeout-minutes: 60

Per-group override (LuckPerms primary/inherited group names)
group-timers:
member: 10
vip: 60
elite: 120
legend: 240
mythic: 300 # 5h

Teleport destination
spawn-type: serverspawn # serverspawn | world | global

Message when teleported (MiniMessage OR legacy & supported)
teleport-message: "&7You were &6AFK &7and have been sent to &aspawn&7!"

AFK status visuals
afk-status:
enabled: true
use-team-suffix: false
tab-suffix: " <gray>[<gold>AFK</gold>]</gray>"
tab-suffix-plain: " [AFK]"
tab-suffix-legacy: " &7[&6AFK&7]"
bossbar:
enabled: true
title: "gradient:#ffaa00:#ff0066<bold>AFK</bold></gradient> — move to return"
color: PINK
overlay: PROGRESS
welcome-back:
enabled: true
title: "&a&lWelcome back!"
color: GREEN
overlay: PROGRESS
duration-seconds: 5

Integrations
integrations:
essentials:
override-afk: true # keep Essentials AFK from taking over
hard-hook: true # cancel Essentials AfkStatusChangeEvent
console-spawn: true # run "spawn <player>" as CONSOLE
floodgate:
enabled: true
prefer-java-uuid: true # normalize Bedrock to linked Java UUID when available

Installation

  1. Drop the jar into /plugins on Paper/Spigot 1.21.4.
    install PlaceholderAPI (required for placeholders).
    Install LuckPerms if you want per-group timers.
    * Install EssentialsX if you want “serverspawn” to run its /spawn.

    Restart the server, then run: /afkreload.

Compatibility Notes

Changelog (Summary)


Questions or feature requests? Reply on the resource — I’ll help you wire it up!

Commands

Plugin details

Read from the plugin's own plugin.yml.

Quick facts

Install steps are the general flow for this file type — How to install Minecraft Java mods & modpacks walks through it step by step.

AFK To Spawn is a free Minecraft Java mod. Compatible with Minecraft 1.21. Downloaded 52 times (via Spigot). Download it and open it directly in the game.

Explore more