[Unsolved] Anti-Flying, Anti-Spambot sample code help...

Discussion in 'Plugin Development' started by ASHninja1997, Nov 26, 2013.

Thread Status:
Not open for further replies.
  1. Offline

    ASHninja1997

    I have been looking around for a solid efficient way to detect if a player is using Spambot (shooting arrows at a rapid rate), and Flying cheats. I tried developing the code on my own but seeing I have never done this before I need help with it. If anyone out there knows how to code for a Event-handler that detects flying or spambot if you could teach me it or tell me how to detect it, that would be very much appreciated. If you have any questions please ask. Thanks :D
     
  2. Offline

    callum2904

    why not use nocheatplus?

    also i tried this to send some helpful code but it didn't work :( here's a new option, see if a player is in the air and after a few ticks if his Y- coords haven't changed then he **MAY** be flying, or it could be lag
     
  3. Offline

    sgavster

    For the flying
    Do playermovevent
    check if the player doesn't have allow flight
    if they do not, wait a second, see if they are not on ground, then kick if they are not
     
  4. Offline

    ASHninja1997

    I don't want to use nocheatplus because I am trying to make my own security plugin for my server plus it just makes the server more unique. But thanks for the suggestions, I will see what I can do.
     
Thread Status:
Not open for further replies.

Share This Page