AFK Commands

AFK Commands

A plugin for 26.1.2 that when the player is afk for X time (configurable) it runs a configurable command.

66 downloads 0 followers

AFK Plugin

A lightweight Spigot plugin that automatically detects inactive players and runs any console command of your choice against them. No bloat, no dependencies — just drop it in and configure.


✦ Features

  • Tracks every online player's last activity (walking, clicking, breaking blocks, chatting, and more)
  • Fires a fully customizable console command when a player goes AFK
  • Use {playername} anywhere in the command — it automatically inserts the AFK player's username
  • Optionally warns the player a set number of seconds before the command fires
  • Optionally broadcasts to the whole server when someone goes AFK
  • Compatible with any other plugin's commands — kick, ban, LuckPerms, economy plugins, anything

✦ Example Config

afk-time: 300
afk-command: "kick {playername} You have been kicked for being AFK too long."
warn-before-seconds: 30
afk-warn-message: "&eYou have been AFK for too long and will be removed from the server."
broadcast-afk: true
broadcast-message: "&7[&eAFK&7] &f{playername} &7is now AFK."

✦ Commands

Command Description Permission
/afk Shows your current inactivity time vs. the AFK threshold afk.use
/afkreload Reloads the config without restarting afk.reload

✦ Permissions

Permission Description Default
afk.use Use the /afk command Everyone
afk.reload Reload the config Ops
afk.exempt Never flagged as AFK Nobody
Version Minecraft Loader Download

AFK Commands 1.0.0

1.0.0

1.21, 1.21.1, 1.21.2, 1.21.3, 1.21.4, 1.21.5, 1.21.6, 1.21.7, 1.21.8, 1.21.9, 1.21.10, 1.21.11, 26.1, 26.1.1, 26.1.2
bukkit, paper, purpur, spigot
Download