xAntiAFK - Detect All AFK Players On Your Server
SpigotMCDetect every AFK players | Fully customizable | Afk location, Commands, Servers and more !
9.0k downloads 4.8 rating
latest v3.5.3 SpigotMC
Detect 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
play.savercraft.net
Contact me if you want to list your server here
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:
Placeholders:
WorldGuard flags:
Comments 0
No comments yet. Be the first to share your thoughts.