How to check if a block is broken not by a player...

Discussion in 'Spigot Plugin Help' started by Beelzaboss, May 17, 2015.

  1. Hi guys,

    I am in a bit of a Cookie here... How would one go about checking if a block is broken, but not by a player?

    Example:

    If you have a piston with in a sugarcane farm, and the piston is one block above the ground and a surgarcane of the height of 3 is infront of it. If I turn the piston on, the middle sugarcane will be pushed, but the sugarcane on the level 3 (above) will automatically break and drop. How do I check for such thing?

    I am still bit new with plugins :rolleyes:
     
  2. Not sure, it might be BlockPhysicsEvent.