zEssentials
Spigot
  • Getting Started
    • 🍾Introduction
    • 🔌Installing zEssentials
    • đŸĒConvert
    • 📔Commands
    • đŸĒ§Placeholders
    • đŸŽĢPermissions
    • 🎨Color
    • 📖Messages
    • âšī¸Inventories / Buttons
    • 📂Configuration
  • â›°ī¸Modules
    • âŒ¨ī¸Afk
    • đŸ—Ŗī¸Chat
    • Discord
    • 💲Economy
    • đŸ‘ģHologram
    • 🏡Home
    • âš”ī¸Items
    • Join / Quit
    • đŸŽŋKits
    • đŸ“ŦMailbox
    • Messages
    • 📏Rules
    • âš’ī¸Sanction
    • đŸ’¯Scoreboard
    • 🔁Spawn
    • 🚏Step
    • Teleportation
    • Vault
    • đŸ—’ī¸Vote
    • 🤜Warp
    • đŸĒ“Worldedit
  • Developpers
    • đŸ•ĸEvents
Powered by GitBook
On this page
  • Configuration
  • config.yml
  1. Modules

Afk

This module manages AFK players and can kick them.

Configuration

config.yml

########################################################################################################################
#
# ░█████╗░███████╗██╗░░██╗
# ██╔══██╗██╔════╝██║░██╔╝
# ███████║█████╗░░█████═╝░
# ██╔══██║██╔══╝░░██╔═██╗░
# ██║░░██║██║░░░░░██║░╚██╗
# ╚═╝░░╚═╝╚═╝░░░░░╚═╝░░╚═╝
#
# Documentation: https://zessentials.groupez.dev/modules/afk
#
########################################################################################################################

enable: true

check-interval: 20 # in ticks

# Allows kicking the player with the spigot method, this avoids using a kick command and that your sanction plugin log the kick
soft-kick: true

soft-kick-message: "<red>You have been kicked for being AFK"

kick-actions:
  - type: message
    messages:
      - "&cYou have been kicked for being AFK"
  # - type: console command
  #  commands:
  #    - "kick %player% AFK"

permissions:
  - priority: 0
    permission: "zessentials.afk.player"
    start-afk-time: 20
    max-afk-time: 60 # in seconds
    kick: true
    message-on-start-afk: "&cYou are now AFK, we have only &f40&c seconds left before being expelled from the server."
    message-on-end-afk: "&aYou are no longer AFK. You have been afk for &f%duration%&a."
  - priority: 1
    permission: "zessentials.afk.vip"
    start-afk-time: 30
    max-afk-time: 120 # in seconds
    message-on-start-afk: "&cYou are now AFK, we have only &f90&c seconds left before being expelled from the server."
    message-on-end-afk: "&aYou are no longer AFK. You have been afk for &f%duration%&a."
    kick: true
  - priority: 2
    permission: "zessentials.afk.admin"
    start-afk-time: 60
    max-afk-time: 300 # in seconds
    # message-on-start-afk: "&cYou are now AFK, we have only &f240&c seconds left before being expelled from the server."
    # message-on-end-afk: "&aYou are no longer AFK. You have been afk for &f%duration%&a."
    kick: true
PreviousConfigurationNextChat

Last updated 1 month ago

â›°ī¸
âŒ¨ī¸