gentili/RailDriver — pull request #14 by fyrenth (2012-04-18 20:13:34+00:00)
Title: Item Drops Fixed and basic block breaking permission checks

Drops from driver block breaks are now gathered by Block.getDrops() which gives you coal for Coal Ore, Lapis for Lapis Ore, Diamonds for Diamond Ore etc.

Moved Player based Event into a PlayerListener class for clarity on structure (having them in BlockListener and WorldListener didn't seem right)

canBreakBlock added to RailDriverTask class, to perfom a BlockBreakEvent execution on behalf of the Driver playerOwner to determine if blocks can be broken. Hasn't changed the way the Driver works normally at present, need to setup more extensive test setups to ensure this does prevent protected block breakage.