package org.dynmap;

import org.bukkit.block.Block;
import org.bukkit.block.BlockDamageLevel;
import org.bukkit.event.block.BlockDamageEvent;
import org.bukkit.event.block.BlockListener;
import org.bukkit.event.block.BlockPlaceEvent;

public class DynmapBlockListener extends BlockListener {
	private MapManager mgr;
	
	public DynmapBlockListener(MapManager mgr) {
		this.mgr = mgr;
	}

	@Override
	public void onBlockPlaced(BlockPlaceEvent event) {
		Block blockPlaced = event.getBlockPlaced();
		mgr.touch(blockPlaced.getX(), blockPlaced.getY(), blockPlaced.getZ());
	}
	
	@Override
	public void onBlockDamaged(BlockDamageEvent event) {
		if (event.getDamageLevel() == BlockDamageLevel.BROKEN) {
			Block blockBroken = event.getBlock();
			mgr.touch(blockBroken.getX(), blockBroken.getY(), blockBroken.getZ());
		}
	}
}

@@ -416,17 +416,16 @@
 ockPlace
-d
 (BlockPl
@@ -568,20 +568,8 @@
 %0A%09%7D%0A
-%09%0A%09@Override
 %0A%09pu
@@ -591,17 +591,16 @@
 ckDamage
-d
 (BlockDa
@@ -618,16 +618,18 @@
 vent) %7B%0A
+%09%09
 %09%09if (ev

Fix to be compatible with latest Bukkit.