⭐ AFK Commands ⭐ | Set a command when a player goes AFK 1.1.3

Allows you to automatically execute commands and messages when a player goes AFK

  1. gregoryg
    Native Minecraft Version:
    Tested Minecraft Versions:
    • 1.8
    • 1.9
    • 1.10
    • 1.11
    • 1.12
    • 1.13
    • 1.14
    • 1.15
    • 1.16
    • 1.17
    Source Code:
    Languages Supported:
    Hooks into Essentials and EssentialsX
    You can add customisable commands and messages once a player goes AFK and comes back from AFK so you could have a player get sent to a certain warp or a server, or even kicked from the server when they go AFK, it's all customisable.
    #Player placeholder is %player%
    #The commands and message can be customised to your liking and can do anything
    command-on-afk: 'warp limbo %player%'
    disable-message: false
    message-to-player-on-afk: '&c%player% you have been sent to the &4Limbo &cwarp for being idle'
    command-on-unafk: 'spawn %player%'
    message-to-player-on-unafk: '&c%player% you have been sent to the &4Spawn'
    checkUpdates: true
    /AFK - Default Essentials AFK command or automatic once players put into AFK by Essentials

    /AFKCommand - Shows plugin info such as version and developer

    /AFKCommand Reload - Reloads configuration - afkcommand.reload
    Please leave your plugin suggestions on the Discussion page or contribute yourself on github GitHub - iangry0/AFKCommands: SpigotMC AFKCommands Plugin

    Feel free to check out these servers for a plugin demo.
    If you'd like to have your servers IP here then please leave your server IP in the reviews and I'll add it here.
    Bijju089 likes this.

Recent Reviews

  1. Adarsh_A
    Version: 1.1.3
    Best plugin Out there.
    but a single moment detects un afk causing to execute the command too fast
    there should be a delay a small moment is leading the afk to be non-afk-ed, please make a change, then I'll change this review.
  2. CloneXmmT
    Version: 1.1.3
    Good Plugin :D

    PS: Please leave your server IP in the reviews and I'll add it here.
    1. gregoryg
      Author's Response
      I have added your server ip to the post. Thanks for using the plugin and making a review, I appreciate it! If there's anything you'd like to see added then please let me know :)
  3. maitsse
    Version: 1.1.2
    I love this it is so easy to use, but one thing, is there a way to make it so that the player gets tp back to their last location?
    1. gregoryg
      Author's Response
      Thanks for the review, I am glad to hear you like the plugin. There is currently no built in way to tp the player back to their last location, I can add that to the plugin as an option. However you can add commands on afk and on un afk which may solve your problem.
  4. chanon1211
    Version: 1.0.7
    When I found this plugin, I thought it was running smoothly but turns out it has a serious problem when using it.

    Same as Athesiel, when a specific user goes afk, the plugin runs the command for every online player which is not what I want, I am looking for a plugin that can do its purpose not everyone on the server.

    What I was talking about is the same as Athesiel, please fix this problem.
    1. gregoryg
      Author's Response
      I have fixed all the issues that were mentioned by you and Athesiel.
      It now works for the single user that goes afk.

      If there is anything else I can do, please let me know and thanks for the review
  5. NNAskijarf
    Version: 1.0.7
    Who is the Config? Pls say it to me
    DM me pls or response to this text!

    Thx Noah | Dev
    1. gregoryg
      Author's Response
      What do you mean?
  6. Athesiel
    Version: 1.0.7
    This plugin has multiple issues in its 1.0.7 release.

    Here's my scenario: I set the plugin so that when players enter AFK, they get a tag called "afk". This is accomplished with command-on-afk being set to "tag %player% add afk". I set the plugin so that when players leave AFK, they lose the afk tag. This is accomplished with command-on-afk being set to "tag %player% remove afk".

    1) While going unafk, individual players lose the AFK tag. This is functioning as intended. However, when going AFK, it runs the command for EVERY SINGLE USER. Essentials doesn't mark them AFK, but this plugin recognizes any 1 player Going AFK as EVERY SINGLE PLAYER going AFK, and sends the messages accordingly. Thus, if any player is made AFK, by the default config, every single player is warped to "limbo" and then to spawn.

    2) If you set the message strings to :'', they send empty messages. If you set them to nothing, they send the default messages. If you remove them entirely, it sends the default messages. There is absolutely no way to disable the sending of messages upon entering & leaving AFK. Which, paired with the first, makes it so that if any player goes AFK, your chat is spammed with 2 unnecessary messages.

    I'm sure this plugin worked great at one point, and would have been exactly what I needed, but right now, it is just... completely untenable. I don't know how it got to this point compared to what the previous ratings on it were, and I really hope that you update it soon to fix these issues.
    1. gregoryg
      Author's Response
      Hi, sorry for the long wait. I lost the source code to this plugin and recently decompiled the jar to get the source back.

      I have fixed all the issues you have mentioned in the review. It now works for the single user that goes afk.

      You also mentioned it won't send a empty message if you set the string to "", you can now go in the config and set the booelan

      disable-message: true

      and it will not send the user a message upon entering/leaving afk.

      If there is anything else I can do, please let me know and thanks for the review
  7. ifriedmonkey
    Version: 1.0.1
    If I could give this plugin 6 stars I would. The best plugin ever no need for any of plugin I fink GregoryGEE is the best spig0t dEvElOpEr. Keep up with the good work ;D
    1. gregoryg
      Author's Response
      Um thanks :)
  8. DrProScream
    Version: 1.0.1
    Perfect! Just what I needed. It's customizable so I made it kick players into my afk /server.
    1. gregoryg
      Author's Response
      Thanks. Is there anything you want to see added?