xAntiAFK - Detect All AFK Players On Your Server
3.5.3Detect every AFK players | Fully customizable | Afk location, Commands, Servers and more !
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

API
xAntiAFKAPI.getAfkPlayers() | List<Player>
xAntiAFKAPI.isAfk(player) | Boolean
xAntiAFKAPI.setAfk(Player, Boolean)
Event:
PlayerAfkStatusChangeEvent
play.savercraft.net
Contact me if you want to list your server here

Default config
# +-------------------------------------------------------+ #
# | 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: falseActions:
- messages:<message>
- broadcasts:<broadcast>
- commands:<command>
- playerCommands:<command>
- teleport:<location>
- titles:<title>
- server:<server name> ᴮᵘⁿᵍᵉᵉᶜᵒʳᵈ
Placeholders:
- %xantiafk_status%: Displays the player status as defined in the configuration
- %xantiafk_time%: Displays the formatted time since the last status change
WorldGuard flags:
Note: versions prior to 7.0.x are currently not supported
- afk-bypass: toggle checks
- afk-check: toggle AFK checks
- afk-status-actions: toggle actions performed when AFK state changes
Similar projects
Plugin →Let Me Despawn
Improves performance by tweaking mob despawn rules. Say bye to pesky unintentional persistent mobs.
26.2MSueta
JourneyMap
Real-time map used for mapping in-game or your browser as you explore.
14.7MSueta
Emotecraft
Create your own emotes in Minecraft.
7.9MSueta
Simple Tpa
A simple tpa plugin which sends requests
5.4MSueta
Common Network
Forge and Fabric Unified Networking Solution
4.7MSueta
Set Home
A lightweight plugin for players to set their homes.
3.8MSueta
