Modified version of 
http://dev.bukkit.org/bukkit-plugins/redstone-clock-detector/