package vg.civcraft.mc.citadel.events;

import org.bukkit.entity.Player;
import org.bukkit.event.Cancellable;
import org.bukkit.event.Event;
import org.bukkit.event.HandlerList;

import vg.civcraft.mc.citadel.reinforcement.PlayerReinforcement;

public class AcidBlockEvent extends Event implements Cancellable{
	private static final HandlerList handlers = new HandlerList();
	
	private Player p;
	private PlayerReinforcement acidBlock;
	private PlayerReinforcement destroyedBlock;
	public AcidBlockEvent(Player p, PlayerReinforcement acidBlock,
			PlayerReinforcement destroyedBlock){
		this.p = p;
		this.acidBlock = acidBlock;
		this.destroyedBlock = destroyedBlock;
	}
	/**
	 * Gets the PlayerReinforcement on the acid block.
	 * @return Returns the PlayerReinforcement.
	 */
	public PlayerReinforcement getAcidBlockReinforcement(){
		return acidBlock;
	}
	/**
	 * Gets the PlayerReinforcement on the block above the Acid Block.
	 * @return Returns the PlayerReinforcement for the block above the Acid Block.
	 */
	public PlayerReinforcement getDestoryedBlockReinforcement(){
		return destroyedBlock;
	}
	
	private boolean isCancelled = false;
	@Override
	public boolean isCancelled() {
		return isCancelled;
	}

	@Override
	public void setCancelled(boolean value) {
		isCancelled = value;
	}

	@Override
	public HandlerList getHandlers() {
		return handlers;
	}
	
	public static HandlerList getHandlerList() {
		return handlers;
		}
}
@@ -127,20 +127,26 @@
 t.event.
-Even
+HandlerLis
 t;%0Aimpor
@@ -164,26 +164,33 @@
 t.event.
-HandlerLis
+player.PlayerEven
 t;%0A%0Aimpo
@@ -251,16 +251,90 @@
 ement;%0A%0A
+/**%0A * Event that is called when an acid block action is performed%0A *%0A */%0A
 public c
@@ -361,16 +361,22 @@
 extends 
+Player
 Event im
@@ -395,16 +395,17 @@
 cellable
+ 
 %7B%0A%09priva
@@ -462,17 +462,16 @@
 List();%0A
-%09
 %0A%09privat
@@ -472,24 +472,51 @@
 private 
-Player p
+final PlayerReinforcement acidBlock
 ;%0A%09priva
@@ -510,32 +510,38 @@
 Block;%0A%09private 
+final 
 PlayerReinforcem
@@ -548,47 +548,202 @@
 ent 
-acidBlock;%0A%09private PlayerReinforcement
+destroyedBlock;%0A%0A%09/**%0A%09 * Creates a new AcidBlockEvent instance%0A%09 * @param player The player performing the acid action%0A%09 * @param acidBlock The acid block instance%0A%09 * @param destroyedBlock The
  des
@@ -748,22 +748,36 @@
 estroyed
-B
+ b
 lock
-;
+ instance%0A%09 */
 %0A%09public
@@ -796,16 +796,22 @@
 ent(
+final 
 Player p
 , Pl
@@ -806,17 +806,28 @@
 Player p
-,
+layer, final
  PlayerR
@@ -892,23 +892,28 @@
 ock)
+ 
 %7B%0A%09%09
-this.p = p;
+super(player);%0A
 %0A%09%09t
@@ -974,32 +974,33 @@
 troyedBlock;%0A%09%7D%0A
+%0A
 %09/**%0A%09 * Gets th
@@ -1137,32 +1137,33 @@
 kReinforcement()
+ 
 %7B%0A%09%09return acidB
@@ -1171,16 +1171,17 @@
 ock;%0A%09%7D%0A
+%0A
 %09/**%0A%09 *
@@ -1365,18 +1365,18 @@
  getDest
-o
 r
+o
 yedBlock
@@ -1390,16 +1390,17 @@
 cement()
+ 
 %7B%0A%09%09retu
@@ -1421,17 +1421,16 @@
 ock;%0A%09%7D%0A
-%09
 %0A%09privat
@@ -1679,17 +1679,16 @@
 ers;%0A%09%7D%0A
-%09
 %0A%09public
@@ -1745,13 +1745,12 @@
 ndlers;%0A
-%09
 %09%7D%0A%7D

Fix Acid block event