On Minecraft, I have a good AFK machine set up, it's all lit up and covered so I don't die while in it. But there is a problem with it:

When I go AFK, I'd say about half of the time I come back and the screen says "Disconnected" or "Timed Out". This defeats the purpose of an AFK machine, because none of my things load whilst I'm disconnected.

I was wondering if there is a way to eliminate or at least reduce the amount of times that I get logged out while AFK?

NOTE In this situation where I go AFK I am on a multiplayer server.

  • 6
    Are you being kicked for being afk or just losing connection? If it's the latter, then there's probably not a lot you can do. If it's the former... You may be able to use a macro or something
    – Unionhawk
    Aug 20, 2015 at 1:11
  • 2
    "Timed out" means the server stopped responding for too long and you got kicked to prevent issues, but I assume you know that.
    – 2xedo
    Aug 20, 2015 at 5:07
  • 1
    Out of question, isn't AFKing usually against most server rules. Assuming you aren't playing on a private one.
    – RavenM
    Aug 20, 2015 at 15:24
  • 1
    What afk macine are you using, it may be a flaw with the design
    – Moddl
    Aug 21, 2015 at 22:34
  • A lot of "budget" servers kick players who go afk. Some go as far as requiring payment to have the "privilege".
    – SF.
    Jul 28, 2021 at 14:16

4 Answers 4


Assuming you are getting kicked automatically because the server set a "Max AFK time before kick" , this should be relatively easy to solve.

Simply place a trapdoor in front of you and close/open it at the same time as you press F11.

F11 toggles fullscreen, and if you exit fullscreen while holding a key Minecraft will for some reason not detect that you released the key. So basically you're gonna be constantly opening and closing a trapdoor and therefore you will not be kicked.

  • Some servers have more sophisticated afk player detection.
    – SF.
    Jul 28, 2021 at 14:17

Disclaimer: I made this. I'm not advertising it, I just think that it can be useful for him/her.

There is an application I released at github, which automatically clicks the button specified, preventing you from getting kicked.


how to use

Just pressing start should be enough to start avoiding afk kick.

  • 3
    It looks like v3 is not very compatible with Minecraft, due to F3 being a button used quite often in game (unless you can change that?). v2 should work fine though.
    – MrLemon
    Aug 20, 2015 at 7:40
  • 2
    v2 and v3 has 1 difference= F3 hotkey. I might add an option to change that.
    – ave
    Aug 20, 2015 at 7:42

if you hold down the right mouse button the take it out of your PC then it will keep pressing right automatically if you stand in front of a trapdoor you will not get kicked for being away


If you're on a laptop, don't close the screen. That will cause you to get kicked.

  • 2
    There are usually settings in the operation system that allow you to change how closing the laptop screen affects the computer. By default, I think it's set to sleep the laptop, but you can also set it to turn the screen off (while the rest of the computer is still on and running at full speed).
    – Mage Xy
    Oct 7, 2016 at 17:36
  • 2
    This will prevent you from timing out, but not getting kicked. Leaving the laptop open and waiting a while will still kick you. Closing it simply cuts off your connection.
    – user140963
    Mar 4, 2017 at 20:41

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .