2.1 AFK Warp / Kick 1.3.3

Idle players will be warped/kicked after a defined time. Originally developed by DarkunderdoG

  1. bippity
    API Version:
    2.1
    TShock Version:
    4.3.22
    Source URL:
    https://github.com/bippity/AFK/
    Originally developed by DarkunderdoG (https://tshock.co/xf/index.php?threads/1-15-afk-warp-kick-plugin.2594/)

    When a player is idle/afk for a defined time, the server will warp the player to the "afk" warp or when the player types "/afk".
    This update fixes the spamming errors when the "afk" warp/region is not defined. /back was changed to /return due to command conflict with Essentials+.

    Commands:
    • /afktime - provides the player details about their afk status
    • /afk - warps the user to afk
    • /return - warps the player back to original position (Talking or leaving the afk region also does this)
    • /afkwarptime <seconds> - Changes the duration of when a player is warped to afk
    • /afkkicktime <seconds> - Changes the duration of when a player is kicked from being afk
    • /afkreload - reloads the AFK config file

    Config File: (AFKconfig.json)
    Code:
    {
      "afkwarp": true, <---Enable/Disable warp players to afk
      "afkkick": false, <---Enable/Disable kick players in afk
      "afkwarptime": 300, <---Duration in seconds before being warped to afk
      "afkkicktime": 700, <---Duration in seconds before being kicked
      "afkspam": 20, <--Delay in seconds before the player can use /afk again
      "awayMessage": "{player} is away.", <--Broadcasted message when player is afk
      "returnMessage": "{player} is no longer afk." <--Broadcasted message when player returns
    }

    Usage:
    For AFK Warp:
    Create a region called "afk".
    Create a warp called "afk" within the afk region.
    To hide the warp from the warp list...
    Code:
    /warp hide afk true
    Now users can use /afk
    For AFK Kick:
    No setup required other than to have it enabled. It will warn players 3 times before kicking them. (at 70%, 80%, and 90% of the afkkicktime)
    Give user groups "afk.nokick" to prevent those users from being kicked.

    sleeping by Hadi Davodpour from the Noun Project
    Koteika3000 and Djarid like this.

Recent Updates

  1. API Update 2.1
  2. API 2.0 / TShock Mintaka update
  3. API Tick 1.25

Recent Reviews

  1. OFF
    OFF
    5/5,
    Version: 1.1
    Awesome but you should fix where the player can go afk while being afk.
    1. bippity
      Author's Response
      You mean when they're not signed in?