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

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

  1. gregoryg
    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
    Contributors:
    iAngry
    Languages Supported:
    English
    [​IMG]
    [​IMG]
    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
    [​IMG]
    /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
    [​IMG]
    Please leave your plugin suggestions on the Discussion page.
    [​IMG]
    Please leave your server IP in the reviews and I'll add it here.

Recent Reviews

  1. chanon1211
    chanon1211
    2/5,
    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
  2. NNAskijarf
    NNAskijarf
    3/5,
    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?
  3. Athesiel
    Athesiel
    1/5,
    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
  4. ifriedmonkey
    ifriedmonkey
    5/5,
    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 :)
  5. DrProScream
    DrProScream
    5/5,
    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?