2015-01-11 23:33:05 +00:00
|
|
|
package me.ryanhamshire.GriefPrevention.events;
|
|
|
|
|
|
|
|
|
|
import me.ryanhamshire.GriefPrevention.Claim;
|
|
|
|
|
import org.bukkit.event.Event;
|
|
|
|
|
import org.bukkit.event.HandlerList;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* This event gets called whenever a claim is going to be deleted. This event is
|
|
|
|
|
* not called when a claim is resized.
|
2020-06-09 04:57:55 +00:00
|
|
|
*
|
2015-01-11 23:33:05 +00:00
|
|
|
* @author Tux2
|
|
|
|
|
*/
|
2020-06-09 04:57:55 +00:00
|
|
|
public class ClaimDeletedEvent extends Event
|
|
|
|
|
{
|
2015-01-11 23:33:05 +00:00
|
|
|
|
|
|
|
|
// Custom Event Requirements
|
|
|
|
|
private static final HandlerList handlers = new HandlerList();
|
|
|
|
|
|
2020-06-09 04:57:55 +00:00
|
|
|
public static HandlerList getHandlerList()
|
|
|
|
|
{
|
2015-01-11 23:33:05 +00:00
|
|
|
return handlers;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
private Claim claim;
|
|
|
|
|
|
2020-06-09 04:57:55 +00:00
|
|
|
public ClaimDeletedEvent(Claim claim)
|
|
|
|
|
{
|
2015-01-11 23:33:05 +00:00
|
|
|
this.claim = claim;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Gets the claim to be deleted.
|
2020-06-09 04:57:55 +00:00
|
|
|
*
|
2015-01-11 23:33:05 +00:00
|
|
|
* @return
|
|
|
|
|
*/
|
2020-06-09 04:57:55 +00:00
|
|
|
public Claim getClaim()
|
|
|
|
|
{
|
2015-01-11 23:33:05 +00:00
|
|
|
return claim;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@Override
|
2020-06-09 04:57:55 +00:00
|
|
|
public HandlerList getHandlers()
|
|
|
|
|
{
|
2015-01-11 23:33:05 +00:00
|
|
|
return handlers;
|
|
|
|
|
}
|
|
|
|
|
}
|