/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package com.bekvon.bukkit.residence.event;

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

import com.bekvon.bukkit.residence.protection.ClaimedResidence;

/**
 *
 * @author Administrator
 */
public class CancellableResidencePlayerEvent extends ResidencePlayerEvent implements Cancellable {

	protected boolean cancelled;

	public CancellableResidencePlayerEvent(String eventName, ClaimedResidence resref, Player player)
	{
		super(eventName, resref, player);
		cancelled = false;
	}

	@Override
	public boolean isCancelled() {
		return cancelled;
	}

	@Override
	public void setCancelled(boolean bln) {
		cancelled = bln;
	}

}
