Anti-AFK 1.0

Put a stop to people afk-ing on your server. Completely Customizable.

  1. Jaeger_Danger
    Native Minecraft Version:
    1.16
    Tested Minecraft Versions:
    • 1.8
    • 1.9
    • 1.10
    • 1.11
    • 1.12
    • 1.13
    • 1.14
    • 1.15
    • 1.16
    Anti-AFK
    This script contains no permanent variable saving. It uses a while loop of local variables and global temporary metadata tags.

    It contains a violation system with different time/radius/violation limits with specific functions that allow a captcha system to work alongside it.

    For a basic explanation, it has 3 main options. First: The amount of time the code checks for how far you have moved. Second: The radius a player has to have moved within that time for it to not add a violation to the player. Third: The max amount of violations before the player will be kicked.

    If notifications are enabled, the script will notify the user when they have been afk for half of the max afk time. It will also send a Captcha to them. If they get the Captcha correct, the afk time is reset, if they get it wrong twice, they will be kicked. If they ignore it, the violation system continues until they are automatically kicked.
    If notifications (greater than) setting is enabled, it will notify the player every time a violation is added to the player if the violation is greater than half of the max violation. It will also send the saved Captcha at the same time.

    Caution must be taken when setting these 3 settings. At the default settings they (in my opinion) are decent. If you set anything too low or too high, players will be kicked unfairly. Take care, do not review this badly if you set it wrongly.

    Most messages are customizable. Almost all settings are Customizable.

    The permission system goes as follows:

    antiafk.bypass - The player will never get any violations if they have this permission. To allow all players including ones with op to get violations, add this permission with a - in front of the permission to negate the permission.

    antiafk.devdebug - All players with this permission will receive messages each time a violation is added to a player, if debug mode is enabled. This can be spammy.

    This does not contain a single "loop all players"
    This was not tested on 1.8.8, but will probably work on Skript 2.5.3 1.8 edition.
    For 1.9.10 + use Skript 2.5.3 or higher

    Screenshots with {@notificationsgreaterthan} and {@devdebug} true

    [​IMG]

    [​IMG]

    [​IMG]

    [​IMG]

    For support, questions and suggestions please contact me on my discord:
    Jaeger_Danger#3523

    Feel free to leave a review. Thanks for downloading :)

Recent Reviews

  1. ghostly06
    ghostly06
    5/5,
    Version: 1.0
    Extraordinary!
    ---------------------------------------------------------------------------
  2. zacharycram
    zacharycram
    5/5,
    Version: 1.0
    excellentttttttttttttttttttttttttttttttttttttttttt now no one will be able to afk
    1. Jaeger_Danger
      Author's Response
      Thank you very much hope it works well
  3. haseebOMG
    haseebOMG
    1/5,
    Version: 1.0
    I would use this but I have essentials and that has /afk so sorry I can't use it better luck next time!
    1. Jaeger_Danger
      Author's Response
      Are you stupid? This has nothing to do with that. Reporting your review now due to ignorance... you obviously haven't even tried it.