ModsJava
xAntiAFK - Detect All AFK Players On Your Server
Java mod listed for Minecraft 1.8–1.19. Downloads from the MC Java Mods app on Android.
⬇ Download on SpigotDetect every AFK players on your server and perform actions.
• Detect every AFK players on your server
• Run commands, teleport players, send messages, titles and more
• Teleport players who are no longer AFK to their last location
• Send players to other servers ⁽ᴮᵘⁿᵍᵉᵉᶜᵒʳᵈ⁾
• Everything is customizable
• TAB , PlaceholderAPI , Factions , WorldGuard7.0.x support
/xaa reload - Reload the configuration file
/xaa version
/afk
/afk <player>
xantiafk.admin | Display/use admins commands
xantiafk.bypass | Bypass AFK check
xantiafk.afk | Access to the /afk command
Spoiler: API
play.savercraft.net
Contact me if you want to list your server here
Spoiler: Default config
Code (YAML):
# +-------------------------------------------------------+ #
# | xAntiAFK | #
# | by Soolz | #
# +-------------------------------------------------------+ #
# In ticks (20 ticks = 1 second)
checkInterval : 20
# Check operator (/op) players knowing they have all permissions including 'xantiafk.bypass'
checkOp : false
# Set player as AFK when joining the server
afkOnJoin : false
# Set player as no longer AFK when sending chat message
noLongerOnChat : true
# Each check
actions:
'180' :
- messages:prevent
'240' :
- setAfk
'360' :
- commands:kick
events:
onAfk :
# Prevent player from hitting and being hurt
noDamage : true
# Send a title to players while they are AFK. none: disabled
title : none
actions :
- broadcasts:nowafk
- messages:protected
noLonger :
# Teleport player to their last location
teleportBack : false
actions :
- broadcasts:nolonger
internalMessages:
reload : '&aConfiguration reloaded.'
nopermission : '&cYou don''t have the permission to do that.'
nohurt : '&cYou can''t hurt an AFK player.'
playernotfound : '&cPlayer &e %player%&c not found.'
playerafk : ' %player% has been afk for %time%.'
playernotafk : ' %player% is not afk.'
time:
hours : ' %h% hour(s)'
hours-minutes : ' %h% hour(s) and %m% minute(s)'
minutes : ' %m% minute(s)'
minutes-seconds : ' %m% minute(s) and %s% second(s)'
seconds : less than a minute
messages:
prefix : '&4 [&fx&c&lAntiAFK&4 ]&f '
prevent : '&6Looks like you''re AFK ...'
protected : '&6You''re now protected.'
broadcasts:
prefix : '&4 [&fx&c&lAntiAFK&4 ]&f '
nowafk : '&e %player% &6is now AFK'
nolonger : '&e %player% &6is no longer AFK'
commands:
kick : kick %player% &4[&fx&c&lAntiAFK&4] &eYou're AFK
playercommands:
example : me is afk
titles:
example1:
title : '&cAFK'
subtitle : '&7You are AFK'
example2:
title : Title
subtitle : Subtitle
fadeIn : 10
stay : 70
fadeOut : 20
# Format: <WorldName>,<X>,<Y>,<Z>
# Format: <WorldName>,<X>,<Y>,<Z>,<Yaw>,<Pitch>
locations:
example1 : world,0,60,0
example2 : world,0,60,0,180,0
# Here you can change the output of placeholders (if using PlaceholderAPI)
placeholders:
status:
default : ''
afk : ' &4 [&cAFK&4 ]'
worlds :
# If true, players can be afk only in the worlds in the list
whitelist : false
# Disable all checks
stopChecking : true
# Only prevent players from becoming afk
preventsBeingAfk : true
list :
- ignored_world
# Currently supports Factions (MassiveCore)
factions :
# If false, afk players will no longer gain power
afkPowerGain : true
# If true, the plugin will also check the X-Y-Z coordinates of the players
useCoordinateCheck : true
disableMetrics : false
disableVersionCheck : false
# | xAntiAFK | #
# | by Soolz | #
# +-------------------------------------------------------+ #
# In ticks (20 ticks = 1 second)
checkInterval : 20
# Check operator (/op) players knowing they have all permissions including 'xantiafk.bypass'
checkOp : false
# Set player as AFK when joining the server
afkOnJoin : false
# Set player as no longer AFK when sending chat message
noLongerOnChat : true
# Each check
actions:
'180' :
- messages:prevent
'240' :
- setAfk
'360' :
- commands:kick
events:
onAfk :
# Prevent player from hitting and being hurt
noDamage : true
# Send a title to players while they are AFK. none: disabled
title : none
actions :
- broadcasts:nowafk
- messages:protected
noLonger :
# Teleport player to their last location
teleportBack : false
actions :
- broadcasts:nolonger
internalMessages:
reload : '&aConfiguration reloaded.'
nopermission : '&cYou don''t have the permission to do that.'
nohurt : '&cYou can''t hurt an AFK player.'
playernotfound : '&cPlayer &e %player%&c not found.'
playerafk : ' %player% has been afk for %time%.'
playernotafk : ' %player% is not afk.'
time:
hours : ' %h% hour(s)'
hours-minutes : ' %h% hour(s) and %m% minute(s)'
minutes : ' %m% minute(s)'
minutes-seconds : ' %m% minute(s) and %s% second(s)'
seconds : less than a minute
messages:
prefix : '&4 [&fx&c&lAntiAFK&4 ]&f '
prevent : '&6Looks like you''re AFK ...'
protected : '&6You''re now protected.'
broadcasts:
prefix : '&4 [&fx&c&lAntiAFK&4 ]&f '
nowafk : '&e %player% &6is now AFK'
nolonger : '&e %player% &6is no longer AFK'
commands:
kick : kick %player% &4[&fx&c&lAntiAFK&4] &eYou're AFK
playercommands:
example : me is afk
titles:
example1:
title : '&cAFK'
subtitle : '&7You are AFK'
example2:
title : Title
subtitle : Subtitle
fadeIn : 10
stay : 70
fadeOut : 20
# Format: <WorldName>,<X>,<Y>,<Z>
# Format: <WorldName>,<X>,<Y>,<Z>,<Yaw>,<Pitch>
locations:
example1 : world,0,60,0
example2 : world,0,60,0,180,0
# Here you can change the output of placeholders (if using PlaceholderAPI)
placeholders:
status:
default : ''
afk : ' &4 [&cAFK&4 ]'
worlds :
# If true, players can be afk only in the worlds in the list
whitelist : false
# Disable all checks
stopChecking : true
# Only prevent players from becoming afk
preventsBeingAfk : true
list :
- ignored_world
# Currently supports Factions (MassiveCore)
factions :
# If false, afk players will no longer gain power
afkPowerGain : true
# If true, the plugin will also check the X-Y-Z coordinates of the players
useCoordinateCheck : true
disableMetrics : false
disableVersionCheck : false
Actions:
- messages:<message>
- broadcasts:<broadcast>
- commands:<command>
- playerCommands:<command>
- teleport:<location>
- titles:<title>
- server:<server name> ᴮᵘⁿᵍᵉᵉᶜᵒʳᵈClick to expand...
Placeholders:
WorldGuard flags:
- %xantiafk_status%: Displays the player status as defined in the configuration
- %xantiafk_time%: Displays the formatted time since the last status changeClick to expand...
Note: versions prior to 7.0.x are currently not supportedClick to expand...
- afk-bypass: toggle checks
- afk-check: toggle AFK checks
- afk-status-actions: toggle actions performed when AFK state changesClick to expand...
Quick facts
- Edition: Minecraft Java
- File type: .jar
- Minecraft versions listed: 1.8, 1.9, 1.10
- How to install: Install the matching mod loader (Forge, Fabric or NeoForge) for your Minecraft version. → Download the .jar. → Put it in the .minecraft/mods folder and launch that loader profile.
- Where to get it: Opens on Spigot — not every file is mirrored on our own servers.
Install steps are the general flow for this file type — How to install Minecraft Java mods & modpacks walks through it step by step.
xAntiAFK - Detect All AFK Players On Your Server is a free Minecraft Java mod. Compatible with Minecraft 1.8, 1.9, 1.10, 1.11 and newer. Downloaded 9,350 times (via Spigot). Download it and open it directly in the game.