# =============================================================
# AFKCommandsX Configuration
# =============================================================
# detection-mode:
# auto -> Use EssentialsX AFK events if EssentialsX is present, otherwise fall back to internal timer.
# internal -> Always use the internal inactivity timer (ignores EssentialsX even if installed).
# essentials -> Only use EssentialsX AFK events. If EssentialsX is missing, internal fallback is used with a warning.
# timeout-seconds:
# Number of seconds of inactivity before a player is considered AFK (internal mode or fallback only).
# check-interval-ticks:
# Interval (in ticks) at which the internal AFK loop runs (20 ticks = 1 second). Lower values = more frequent checks.
# commands:
# List of commands to run once when a player becomes AFK. Placeholders:
# {player} -> The player's name
# type:
# console | player (who executes the command)
# =============================================================
afk:
# Master switch to enable/disable AFK detection and actions without removing the plugin
enabled: true
detection-mode: auto
timeout-seconds: 300
check-interval-ticks: 20
# Enable verbose debug logging for AFK command execution
debug: false
commands:
- command: "say {player} is now AFK!" # Example command to announce AFK status
type: "console"
- command: "spawn {player}" # Example command to teleport player to spawn when AFK
type: "console"
# Permissions
# afkcommandsx.command -> Allows use of /afkcommandsx (default: op)
# afkcommandsx.bypass -> Exempts player from AFK detection and commands (give to staff/bots)