[INACTIVE][FIX/SEC] AntiHack v2.1 - Blocks bugs, cheats and hacks! [953]

Discussion in 'Inactive/Unsupported Plugins' started by robin0van0der0v, Mar 20, 2011.

  1. Offline

    robin0van0der0v

    AntiHack - Blocks bugs, cheats and hacks!
    Version: v2.1

    Features:
    • Blocks interacting with blocks on a invalid location.
    • Blocks flying.
    • Blocks unknown items.
    • Blocks interacting with blocks/entities too far away.
    • Blocks infinity items.
    • Logs every violation.
    Download AntiHack!
    Source is inside the jar file.

    Permissions:
    Give the player you want this permissions for being an exempt to the block invalid location checking:
    Code:
    antihack.canblockinvalidlocation
    Give the player you want this permissions for being an exempt to the flying checking:
    Code:
    antihack.canfly
    Give the player you want this permissions for being an exempt to the unknown item checking:
    Code:
    antihack.canunknownitem
    Give the player you want this permissions for being an exempt to the too far checking:
    Code:
    antihack.cantoofar
    Give the player you want this permissions for being an exempt to the infinity item checking:
    Code:
    antihack.caninfinityitem
    Known bugs:
    You can't walk on half blocks.
    You can fly above layer 128.

    Properties:
    This plugin creates a properties file on Plugins/AntiHack/config.yml. ;)

    Standard properties:
    Code:
    antihack:
        blockinvalidlocation:
            check: true
            log: true
        fly:
            check: true
            log: true
        unknownitem:
            check: true
            log: true
        toofar:
            check: true
            log: true
        infinityitem:
            check: true
            log: true
    Changelog:
    Version 1.0
    • Release.
    Version 1.1
    • Added block for interacting with blocks to far away.
    Version 1.2
    • Added logging.
    Version 1.3
    • Works in Beta 1.4.
    Version 1.4
    • Fixed BLOCK_IGNITE NullPointerException.
    Version 1.5
    • Blocks fly mods.
    • Fixed door-cactus bug.
    Version 1.6
    • Added Permissions node for flying.
    • Fixed walking over slabs.
    • Fixed triple-chest bug.
    • Fixed placing cacti in ground.
    • Limited console messages for flying.
    Version 1.7
    • Blocks unknown items.
    • Blocks infinity items.
    Version 1.8
    • Fixed NullPointerException on reload.
    Version 1.9
    • Removed fix for door-cactus bug because this is fixed in 1.6.
    • Removed fix for triple-chest bug because this is fixed in 1.6.
    • Removed fix for placing cacti in ground because this is fixed in 1.6.
    Version 2.0
    • Now really blocks fly hacking, not just a message.
    Version 2.1
    • Added configuration file.
    • Added more Permission nodes.
    • You can no longer fly above layer 128.
     
  2. Offline

    robin0van0der0v

    No. :(
    Maybe later. ;)
     
  3. Offline

    LudicrousYoshi

    has the BLOCK_IGNITE thing been fixed yet?
     
  4. Offline

    robin0van0der0v

    Fixed BLOCK_IGNITE NullPointerException! :D
     
    LudicrousYoshi likes this.
  5. Offline

    jonathan edel

    thats a great idea, thanks!
     
  6. Offline

    robin0van0der0v

    Added block for fly mods and fixes the door-cactus bug. :)
     
  7. Offline

    Dr_Herbalist

    Where does this log to?
    It doesnt create a folder?
     
  8. Offline

    robin0van0der0v

    It log to the console. ;)
     
  9. Offline

    Dr_Herbalist

    Ah...
    In future updates you should make it log to a file too as server logfiles can get really big and difficult to read in detail.
     
  10. Offline

    Oliver200666

    So theres a guy on my server who has a fly hack/cheat or whatever although i dont think its related to bukkit, its one of his own hacks would this stop him flying???
     
  11. Offline

    Evenprime

    Seems I'm no longer the only one with an anti-fly plugin. :)

    I'm quite interested in how you are going to solve all the little problems and loopholes that keep popping up while writing such a thing.
     
  12. Offline

    Kartus

    What's difference to NoCheat ? Cause AntiHack seems very lightweighted compared?
     
  13. Offline

    Evenprime

    There are lots of differences.

    As you said, AntiHack seems quite lightweighted (although the calling of e.g. the "getRelative" method is imho quite excessive and unneccessary) and will already identify fly mods in most situations (I think I know at least one situation where it won't be detected at all, but that I'll tell the author via PM).

    NoCheat is "heavier", but it does more e.g. check the distance a person travelled (up and in any direction) to prevent clients from teleporting or running by moving a long distance in one step (which is also the reason why it works as some kind of noclip protection, although that was never intended by me). It also respects a players velocity to not flag players as flying if they are shot into the air by other plugins. There are a lot more differences, and these make my code quite complex compared to AntiHack (and if AntiHack implements those corner cases, it will definitely grow in complexity).

    If the differences are that noticable in performance, I don't know. People would just have to test that themself.
     
  14. Offline

    Dangazzm

    Hmm I seem to have found a glitch in my house. I have half block floor in my rooms and now its saying im trying to fly because of them haha. Its funny but... LOTS of people do that on my server haha.
     
  15. Offline

    o0AzzA0o

    This plugin rocks switched from nocheat for the cactus bug detection .... tested anti fly works on several mods great!!!! stuff very lightweight to.

    One feature missing is ability to allow admin/op to fly?
     
  16. Offline

    godgodgodgo

    what was the cactus bug?
    I have both NoCheat and AntiHack

    Please make it possible for me to not get blocked when trying to fly etc

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 12, 2016
  17. Offline

    heinz555

    Can you use a config that the admin's or specific users can use for example MagicCarpet?
     
  18. Offline

    trippdark

    +1

    And antiflying interupts fast moving on cart!!! It's owful.
     
  19. Offline

    robin0van0der0v

    I add it on my todo list. :)

    Yes.

    I know this problem, I try to fix this in the next version. :)

    Place a door next to sand with a cactus on it, then it drops 2 doors. ;)

    I add a permissions node for flying. ;)

    MagicCarpet isn't blocked by this plugin, only client-side fly hacks. :)
     
  20. Offline

    ZachBora

    Is that already implemented? If so, what's the node? I'll switch from NoCheat to this plugin if you got permission node working. I only want my VIP ranks and above to be able to fly.
     
  21. Offline

    MeinerHosen

    I ran into a little problem that happened right after I installed this.

    A guy is building in the middle of the lake to make an arena of dirt and sugar (naturally built), but if he drops into the water he can't climb back up unless he builds a pillar down to the bottom of the lake and then can only get on that one block the pillar is under.

    The program sees this as "Player is trying to fly!" and spams console. Any way you can fix this?

    It's a great plugin but I just don't want this bug hindering it ;p
     
  22. Offline

    Ruannon

    Great plugin blocks the fly hack perfectly
    However I'm having trouble with it spamming the console with warnings whenever someone tries to leave the water were it's atleast 2 blocks deep. And same happened earlier when myself and some players got stuck in the desert walking down a hill. Kept getting teleported back to the place were the "glitch started" even after destroying the blocks standing on we would just float in the air at the same spot. While the console kept getting the warnings.
    My logfile(Wich i backup daily) got from 300kb to 4mb filesize within a minute.
    If this gets fixed i'll be happy to use this in my server. Untill then i'm just gonna have to keep my eyes open.
     
  23. Offline

    ZachBora

    I'm admin AND op and after putting your plugin I tried to fly. I got 2 blocks above ground and then I couldnt do anything, couldnt even turn off flying and it spams the console like crazy... I was forced to log out.

    What I like
    - The fact that the player is frozen.

    What I don't like
    - It spams the console like crazy.

    What I should be improved
    - Allow specific groups to fly
    - Not spam the console that much, maybe limit it to spam each 30 seconds...
    - Tell the user that flying isn't allowed and to tell him he needs to turn it off and relog.

    Using bukkit 670

    Code:
    21:54:00 [WARNING] ZachBora tried to fly!
    21:54:00 [WARNING] ZachBora tried to fly!
    21:54:01 [WARNING] ZachBora tried to fly!
    21:54:02 [WARNING] ZachBora tried to fly!
    21:54:02 [WARNING] ZachBora tried to fly!
    21:54:02 [WARNING] ZachBora tried to fly!
    21:54:02 [WARNING] ZachBora tried to fly!
    21:54:02 [WARNING] ZachBora tried to fly!
    21:54:03 [WARNING] ZachBora tried to fly!
    21:54:03 [WARNING] ZachBora tried to fly!
    21:54:03 [WARNING] ZachBora tried to fly!
    21:54:03 [WARNING] ZachBora tried to fly!
    21:54:03 [WARNING] ZachBora tried to fly!
    21:54:04 [WARNING] ZachBora tried to fly!
    21:54:04 [WARNING] ZachBora tried to fly!
    21:54:04 [WARNING] ZachBora tried to fly!
    21:54:04 [WARNING] ZachBora tried to fly!
    21:54:04 [WARNING] ZachBora tried to fly!
    21:54:05 [WARNING] ZachBora tried to fly!
    21:54:05 [WARNING] ZachBora tried to fly!
    21:54:05 [WARNING] ZachBora tried to fly!
    21:54:05 [WARNING] ZachBora tried to fly!
    21:54:05 [WARNING] ZachBora tried to fly!
    21:54:06 [WARNING] ZachBora tried to fly!
    21:54:06 [WARNING] ZachBora tried to fly!
    21:54:06 [WARNING] ZachBora tried to fly!
    21:54:06 [WARNING] ZachBora tried to fly!
    21:54:06 [WARNING] ZachBora tried to fly!
    21:54:07 [WARNING] ZachBora tried to fly!
    21:54:07 [WARNING] ZachBora tried to fly!
    21:54:07 [WARNING] ZachBora tried to fly!
    21:54:07 [WARNING] ZachBora tried to fly!
    21:54:07 [WARNING] ZachBora tried to fly!
    21:54:07 [WARNING] ZachBora tried to fly!
    21:54:08 [WARNING] ZachBora tried to fly!
    21:54:08 [WARNING] ZachBora tried to fly!
    21:54:08 [WARNING] ZachBora tried to fly!
    21:54:08 [WARNING] ZachBora tried to fly!
    21:54:08 [WARNING] ZachBora tried to fly!
    21:54:09 [WARNING] ZachBora tried to fly!
    21:54:09 [WARNING] ZachBora tried to fly!
    21:54:09 [WARNING] ZachBora tried to fly!
    21:54:09 [WARNING] ZachBora tried to fly!
    21:54:09 [WARNING] ZachBora tried to fly!
    21:54:09 [WARNING] ZachBora tried to fly!
    21:54:10 [WARNING] ZachBora tried to fly!
    21:54:10 [WARNING] ZachBora tried to fly!
    21:54:10 [WARNING] ZachBora tried to fly!
    21:54:10 [WARNING] ZachBora tried to fly!
    21:54:10 [WARNING] ZachBora tried to fly!
    21:54:10 [WARNING] ZachBora tried to fly!
    21:54:11 [WARNING] ZachBora tried to fly!
    21:54:11 [WARNING] ZachBora tried to fly!
    21:54:11 [WARNING] ZachBora tried to fly!
    21:54:11 [WARNING] ZachBora tried to fly!
    21:54:11 [WARNING] ZachBora tried to fly!
    21:54:11 [WARNING] ZachBora tried to fly!
    21:54:12 [WARNING] ZachBora tried to fly!
    21:54:12 [WARNING] ZachBora tried to fly!
    21:54:12 [WARNING] ZachBora tried to fly!
    21:54:12 [WARNING] ZachBora tried to fly!
    21:54:12 [WARNING] ZachBora tried to fly!
    21:54:13 [WARNING] ZachBora tried to fly!
    21:54:14 [WARNING] ZachBora tried to fly!
    21:54:14 [WARNING] ZachBora tried to fly!
    21:54:14 [WARNING] ZachBora tried to fly!
    21:54:14 [WARNING] ZachBora tried to fly!
    21:54:14 [WARNING] ZachBora tried to fly!
    21:54:14 [WARNING] ZachBora tried to fly!
    21:54:14 [WARNING] ZachBora tried to fly!
    21:54:15 [WARNING] ZachBora tried to fly!
    21:54:15 [WARNING] ZachBora tried to fly!
    21:54:15 [WARNING] ZachBora tried to fly!
    21:54:15 [WARNING] ZachBora tried to fly!
    21:54:15 [WARNING] ZachBora tried to fly!
    21:54:16 [WARNING] ZachBora tried to fly!
    21:54:16 [WARNING] ZachBora tried to fly!
    21:54:16 [WARNING] ZachBora tried to fly!
    21:54:16 [WARNING] ZachBora tried to fly!
    21:54:16 [WARNING] ZachBora tried to fly!
    21:54:16 [WARNING] ZachBora tried to fly!
    21:54:16 [WARNING] ZachBora tried to fly!
    21:54:17 [WARNING] ZachBora tried to fly!
    21:54:17 [WARNING] ZachBora tried to fly!
    21:54:17 [WARNING] ZachBora tried to fly!
    21:54:17 [WARNING] ZachBora tried to fly!
     
  24. Offline

    robin0van0der0v

    Fixed. :)

    Added Permissions node for flying.
    And if you don't have Permissions plugin then this is op-only. ;)

    Limited console messages for flying. ;)
     
  25. Offline

    o0AzzA0o

    Nice one thanks !!!!!!!! top job halfslab fix as well perfect
     
  26. Offline

    Ruannon

    Thanks:) It's works perfectly now.
     
  27. Offline

    o0AzzA0o

    Just wanted to mention cactus / door bug is mostly fixed you can still duplicate a door if you place 3 cactus in v type shape 2 high and place door in middle it gets around the protection .... 1 cactus 1 door is fixed tho i think same for 2 cactus 1 door.
     
  28. Offline

    godgodgodgo

  29. Offline

    stkeroro

    nice to see autoclicker detection, it causes pvp wins...
     
  30. Offline

    OlDrunk

    Just a bug I noticed , when getting out of boats next to land it detects it as flying , it's easy to work around but figure I'd make note of it.
    Great plugin and thanks to the Dev!
     
  31. Offline

    robin0van0der0v

    Fixed. :)
     

Share This Page