gentili / RailDriver

Bukkit Plugin for automated mining and railroad construction machine
4 stars 2 forks source link

Item Drops Fixed and basic block breaking permission checks #14

Closed fyrenth closed 12 years ago

fyrenth commented 12 years ago

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.