Anti Block Glitch

Discussion in 'Plugin Development' started by superpeanut911, Feb 17, 2014.

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

    superpeanut911

    Block Glitching is plaguing servers everywhere. It is when you continuously jump and break a block untill you glitch into it. This allows you to get over 2 block high walls. My current anti block glitch is extremely annoying for players, since it kicks them from the minigame when they break a solid block. I was hoping somebody here knows of a good system to prevent this. I have tried setting a players velocity down on a block break and I have tried teleporting them down if they where in the air and they broke a block at the same time, with no avail. It still registers as standing on the block when they glitch inside of it instead of air. is a video I found showing how to do it, but he logs off when he does it which isn't necessary. NoCheatPlus tries to combat this last I checked but it fails. Does anybody know of a way to stop this?
     
  2. Offline

    Luke_Lax

    He's only able to do that due to a plugin protecting the block(s) so you can either make a 'no entry' flag area (worldGuard) or if possible put the players in game mode 3 (adventure) so they can't even attempt it
     
  3. Offline

    superpeanut911

    That video was just an example. I have a minigame where players escape the map and get to unreachable places like that. No entry will be silly since I need them there. And I can't put them in gamemode 3, since I need them to be able to break 1 specific block. Unless there is a way to break blocks in adventure, that won't work.
     
  4. Offline

    baugh70

    Code:java
    1. if(!(event.getBlock().getType() == Material.BLOCK_NAME)){
    2. event.setCancelled();
    3. }
     
  5. Offline

    Luke_Lax

    Currently, in adventure mode you can only break a block if you have the tools for it, eg stone would require a pick axe and couldn't be touched without one. You could do something cleaver like giving them a stick that when right clicked on a block, if it's a type that you want them to be able to break, it will break it, otherwise they can't touch any other blocks (because of adventure)
     
  6. Offline

    Garris0n

    NoCheatPlus has effectively blocked this for a very long time.
     
  7. Offline

    superpeanut911

    Not really for me. I can still do it pretty easily. Edit: Had a lot of people test it. It's possible just its a lot harder now since I last tried. With the game going on I don't think they will be able to do it.
    I think i'll try this if the NCP doesn't work. I don't want to give them items but I guess I can replace their starting sword with an axe and then they can break signs with that.

    Read the question next time please.


    Thanks for the help guys
     
  8. Offline

    Garris0n

    Then modify the configuration until it works.
     
  9. Actually i think there might be more possible now than just before, due to reasons i don't know. I recently could do things i wasn't able to do for a long time :p. You could have made a ticket for NCP though...
     
  10. Offline

    Barinade

    Teleport them to their location when the block break is cancelled
     
Thread Status:
Not open for further replies.

Share This Page