LeaverBuster - Deal with LeaveSpammers

Version: 0.1

The forumpost is best kept up to date, furthermore, this page is outdated.

This will ban players who are leaving too many times within a set time period. This will deal with those who spam leaves, which seems to have become common practice these days, unfortunately.

This is especially useful for non-whitelisted servers.


Useful pages:
  • None that I know of.
  • Bans players when they have left too many times in a time period.
  • Logs when players have been banned.
  • Fully configurable.
  • Lightweight.

Version 0.1

  • Initial release.

If your server has been under attack by one of these scripters, please share your experiences.
Before you do, please do read the About LeaveScripters and the effectiveness of this plugin page.

You must login to post a comment. Don't have an account? Register to get one!

  • Avatar of bigscary bigscary Jan 30, 2012 at 23:13 UTC - 0 likes

    @Rahazan: Go

    Oh, now I see. I thought the problem was a non-exploit, just joining/leaving repeatedly. I see now that they're exploiting a security vulnerability. Thanks!


  • Avatar of mrchasez mrchasez Jan 06, 2012 at 03:26 UTC - 0 likes

    I wish this could stop all clients They can still hack away on my server with this :< Cant you just completely remove that packet

  • Avatar of lawliet555 lawliet555 Jan 02, 2012 at 04:51 UTC - 0 likes

    This is currently not working, We had an attack and the only difference with this plugin was that it had /kick spam not /leave spam


  • Avatar of kookiekrak kookiekrak Dec 29, 2011 at 08:12 UTC - 0 likes
  • Avatar of gravity_low gravity_low Dec 27, 2011 at 19:20 UTC - 0 likes

    Hey there Rahazan, thanks for doing this, We've had this problem for a while now and I'm testing to see if this will fix it.

    Just a quick question, I noticed that your plugin tracks players logging out over a period of time, and it reaches the limit they are banned. However, from what I have seen, the server spams "X has left the game" over and over without the player actually logging in. Would it not be easier to check if a player has sent the "leaving" packet to the server or dropped connection, and then not allow the player to leave again?

    There would be no normal player who would leave the game and then leave again, for any reason, so adding protection against this may be the way to go, however I'm still looking into the fine details of this problem and figuring how it works, so I COULD be wrong.

    Your input is greatly valued. Thanks!

  • Avatar of Rahazan Rahazan Dec 17, 2011 at 01:09 UTC - 0 likes

    @bigscary: Go

    Hey there, it´s not a bad idea, I must say. One thing must, unfortunately, be noted;

    The griefers are long gone when they are spamming these leaves. The hacked clients, somehow, make use of an exploit that makes for recurring leaves. They do not continously log in / log out. The reason of the few seconds that it takes right now to ban a player, is because the server has to so many calculations because of all the leave-packets that it was not prepared to deal with, it takes a while before it can go through the code to detect the griefer and ban him, so it stops at last. As is stated in the forum thread OP, this time is dependant on the power of the server. From I'd say a second to 6 seconds on my home computer. A lot better than having your server crash and getting a logfile thats multiple GBs big..

    Still, it's not perfect, unfortunately.

  • Avatar of bigscary bigscary Dec 16, 2011 at 23:17 UTC - 0 likes

    Hey, umm... instead of letting the damage be done and then banning the player, why not just implement a login cooldown? If you've logged in in the last 10 minutes, you can't log in again yet.

    Now there's never any login spam, from any players. Not even momentarily. And nobody gets banned, so you don't have to answer whines and appeals and questions and all that.

  • Avatar of Rahazan Rahazan Dec 14, 2011 at 00:39 UTC - 0 likes
  • Avatar of PhiberOptikx PhiberOptikx Dec 13, 2011 at 17:06 UTC - 0 likes

    Hi there, can this plugin help me in this specific situation?


    A user joins then spam leaves a few hundred times.



Date created
Oct 19, 2011
Last update
Dec 17, 2011
Development stage
  • enUS
All Rights Reserved
Curse link
Recent files