Welcome to the Hangar Open Beta. Please report any issue you encounter on GitHub!
Avatar for SKStudio

Away by hand or by itself, with a tab-list prefix and an optional kick

Report SK-AFK?

SK AFK

AFK

Away by hand or by itself, with a tab-list prefix and an optional kick

free · one plugin · fully configurable


A player is away when they say so, or when they have not touched anything for a while. The tab list says so, a line tells everybody, and — if you switch it on — the server takes the slot back.

The part that decides whether an AFK plugin is worth having is not the timer. It is whether a water stream can beat it. Being carried by water, a boat, a minecart or an elytra does not count as being active here, because that is exactly what an anti-AFK machine is made of. Turning the camera does count: it is the one input a machine cannot produce.

Drop in the jar, start the server. /afk works, and after five idle minutes it happens by itself.

What it does

  • By hand — /afk or /away, and any real action brings the player back
  • By itself — after five idle minutes, adjustable, or off entirely
  • Being carried does not count — water, boats, minecarts and elytras leave the clock running
  • Camera movement does count — that is the input an away pool cannot fake
  • A tab-list prefix — put in front of the name, put back exactly as it was
  • A chat prefix — off by default, and never added to the line that brings the player back
  • An optional kick — off by default, counted from the moment they went away, not from their last input
  • Two exemptions — one account is never counted away automatically, another is never kicked
  • /skafk list — who is away, for how long, and whether they typed it or the clock did
  • Placeholders — %skafk_status% and the rest for your tab or scoreboard plugin

What it deliberately does not do

It does not protect an away player from damage. A player who cannot be hurt while standing still is a player who parks in a mob farm's kill zone for free, and a safe /afk is the first thing every PvP server asks to have turned off again. Away players stay as vulnerable as everybody else.

A protected spot to be away in is a spawn plugin's job — our free SKSpawn has AFK areas for that.

If you also run SKSpawn

SKSpawn registers /afk as well, where it teleports into an AFK area. On a server with both, the bare /afk goes to whichever plugin loaded first and the other one answers to /skafk:afk or /skspawn:afk.

/away always belongs to this plugin, so it works either way — and the console says the same thing on every start, so nobody has to find it out.

Requirements

  • Bukkit, Spigot, Paper or Folia — 1.21 up to the current release
  • Java 21 or newer
  • Nothing else — PlaceholderAPI only if you want the placeholders

Built against the Spigot API, so nothing in it can quietly depend on Paper. Tested on CraftBukkit 1.21.1, Spigot 1.21.1, Paper 1.21.1, Paper 26.2 and Folia 26.2.

Commands and permissions

  • /afk mark yourself away, or come back — alias /away
  • /skafk list who is away right now
  • /skafk reload reload the configuration

skafk.use (everyone), skafk.admin (operators), skafk.exempt never counted away by the clock, and skafk.nokick never kicked. The last two are for a streamer's account or an event host, not for ranks — hand a rank the exemption and the detection is bought rather than played around.

Configuration

  • settings.yml the idle minutes, what counts as being active, both prefixes, the kick, the sounds and every message
  • English and German both ship with it — one line switches over, comments included

Every setting is commented — what it does, and why it is set that way. An empty message switches that line off.

Built to be left alone

One timer for the whole plugin: once a second it looks at who has not moved. There is nothing to store — away is a state, not a record, and it ends when the player leaves.

Folia-ready: every player is checked in the region that owns them, and a kick happens there too.

No strings attached

No licence key, no whitelist, no phone-home, no statistics. The plugin opens no network connection at all. Free to use and to rebrand on as many servers as you like.

Support

Discord: discord.gg/cJDH38CUtu


If it works for you, following the project means a lot.

Information

Category
Gameplay
Published
December 3, 2026
License
All Rights Reserved
0Downloads
0Stars
Supports Folia

Pinned Versions

Members

1