#Detecting when a block gets powered

1 messages · Page 1 of 1 (latest)

civic rover
#

How could I detect when a block gets powered by a lever? I tried using playerInteractBlock event, but it seems the event gets triggered before the block gets powered by the lever. My only other idea is to use a bukkit runnable to wait and check again a little after the player flipped the lever, but that seems a little janky