How to detect when a piston gets powered

Discussion in 'Plugin Development' started by Debels, Nov 29, 2013.

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

    Debels

    I want to know when a pistons tries to extend (aka gets powered), I tried BlockPistonExtendEvent, but if the block in front of it is one that it can't push it wont trigger the event, I tried BlockPistonEvent, but I get an error saying "unable to find handler list for event org.bukkit.event.block.BlockEvent

    The code I used to see if BlockPistonEvent was triggered when it was about to extend was: http://pastie.org/private/ic9mqhejlyo0lbjzhyrjw
     
  2. Offline

    hellboyPS

    BlockRedstoneEvent should work here.
     
Thread Status:
Not open for further replies.

Share This Page