Language

AFK Commands

AFK Commands

ModrinthSpigotMC

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

13 downloads updated 26d ago
Modrinth
Bukkit Paper Purpur Spigot 1.21 – 26.1.2 AdventureManagementTransportation

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 |

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 AFK Commands

SpigotMC

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