xAntiAFK - Detect All AFK Players On Your Server icon

xAntiAFK - Detect All AFK Players On Your Server -----

Detect every AFK players | Fully customizable | Afk location, Commands, Servers and more !



[​IMG]
Detect every AFK players on your server and perform actions.

[​IMG]
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 support

[​IMG]
/xaa reload - Reload the configuration file
/xaa version
/afk
/afk
<player>

[​IMG]
xantiafk.admin | Display/use admins commands
xantiafk.bypass | Bypass AFK check
xantiafk.afk | Access to the /afk command

[​IMG]
Code (Java):

xAntiAFKAPI. getAfkPlayers ( ) | List <Player >

xAntiAFKAPI. isAfk (player ) | Boolean

xAntiAFKAPI. setAfk (Player, Boolean )

Event :
PlayerAfkStatusChangeEvent
 

[​IMG]
play.savercraft.net
play.harpex.xyz


Contact me if you want your server here

[​IMG]
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 back 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."

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]"

# Here you can change the permissions (it's not much use, but it might be useful to someone)
permissions
:
   afk
: xantiafk.afk
   bypass
: xantiafk.bypass
   bypassall
: xantiafk.bypass. all
   admin
: xantiafk.admin

worlds
:
  # If true, players can be afk only in the worlds in the list
  whitelist
: false
  stopChecking
: false
  # 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
: false

disableMetrics
: false
disableVersionCheck
: false

Actions:
Message:

- messages:<message>
Broadcast:
- broadcasts:<broadcast>
Command:
- commands:<command>
Player commands:
- playerCommands:<command>
Teleport:
- teleport:<location>
Titles:
- titles:<title>
Server: ⁽ᴮᵘⁿᵍᵉᵉᶜᵒʳᵈ⁾
- server:<server_name>​

Placeholders:
%xantiafk_status%

[​IMG]
Resource Information
Author:
----------
Total Downloads: 6,125
First Release: Dec 24, 2018
Last Update: Jul 25, 2024
Category: ---------------
All-Time Rating:
12 ratings
Version -----
Released: --------------------
Downloads: ------
Version Rating:
----------------------
-- ratings