[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

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    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.  
  3. Offline

    nhonho

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    will This Block Xray for 1.4_01 ?
  4. Offline

    robin0van0der0v

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    No. :(
    Maybe later. ;)
  5. Offline

    LudicrousYoshi

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    has the BLOCK_IGNITE thing been fixed yet?
  6. Offline

    robin0van0der0v

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Fixed BLOCK_IGNITE NullPointerException! :D
    LudicrousYoshi likes this.
  7. Offline

    jonathan edel

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    thats a great idea, thanks!
  8. Offline

    robin0van0der0v

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Added block for fly mods and fixes the door-cactus bug. :)
  9. Offline

    Dr_Herbalist

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Where does this log to?
    It doesnt create a folder?
  10. Offline

    robin0van0der0v

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    It log to the console. ;)
  11. Offline

    Dr_Herbalist

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    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.
  12. Offline

    Oliver200666

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    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???
  13. Offline

    Evenprime

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    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.
  14. Offline

    Kartus

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    What's difference to NoCheat ? Cause AntiHack seems very lightweighted compared?
  15. Offline

    Evenprime

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    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.
  16. Offline

    Dangazzm

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    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.
  17. Offline

    o0AzzA0o

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    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?
  18. Offline

    godgodgodgo

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    what was the cactus bug?
    I have both NoCheat and AntiHack
  19. Offline

    godgodgodgo

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Please make it possible for me to not get blocked when trying to fly etc
  20. Offline

    heinz555

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Can you use a config that the admin's or specific users can use for example MagicCarpet?
  21. Offline

    trippdark

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    +1

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

    robin0van0der0v

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    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. :)
  23. Offline

    ZachBora

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    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.
  24. Offline

    MeinerHosen

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    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
  25. Offline

    Ruannon

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    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.
  26. Offline

    ZachBora

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    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!
  27. Offline

    robin0van0der0v

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Fixed. :)

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

    Limited console messages for flying. ;)
  28. Offline

    o0AzzA0o

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Nice one thanks !!!!!!!! top job halfslab fix as well perfect
  29. Offline

    Ruannon

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Thanks:) It's works perfectly now.
  30. Offline

    o0AzzA0o

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    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.
  31. Offline

    godgodgodgo

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
  32. Offline

    stkeroro

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    nice to see autoclicker detection, it causes pvp wins...

Share This Page