2019-01-26 15:04:47 +01:00
|
|
|
package com.massivecraft.factions.event;
|
|
|
|
|
|
|
|
import com.massivecraft.factions.entity.Faction;
|
|
|
|
import com.massivecraft.factions.entity.Warp;
|
|
|
|
import org.bukkit.command.CommandSender;
|
|
|
|
import org.bukkit.event.HandlerList;
|
|
|
|
|
|
|
|
public class EventFactionsWarpRemove extends EventFactionsAbstractSender
|
|
|
|
{
|
|
|
|
// -------------------------------------------- //
|
|
|
|
// REQUIRED EVENT CODE
|
|
|
|
// -------------------------------------------- //
|
|
|
|
|
|
|
|
private static final HandlerList handlers = new HandlerList();
|
|
|
|
@Override public HandlerList getHandlers() { return handlers; }
|
|
|
|
public static HandlerList getHandlerList() { return handlers; }
|
|
|
|
|
|
|
|
// -------------------------------------------- //
|
|
|
|
// FIELDS
|
|
|
|
// -------------------------------------------- //
|
|
|
|
|
|
|
|
private final Faction faction;
|
|
|
|
public Faction getFaction() { return this.faction; }
|
|
|
|
|
|
|
|
private Warp warp;
|
|
|
|
public Warp getNewWarp() { return this.warp; }
|
|
|
|
public void setNewWarp(Warp warp) { this.warp = warp; }
|
|
|
|
|
|
|
|
// -------------------------------------------- //
|
|
|
|
// CONSTRUCT
|
|
|
|
// -------------------------------------------- //
|
|
|
|
|
|
|
|
public EventFactionsWarpRemove(CommandSender sender, Faction faction, Warp warp)
|
|
|
|
{
|
|
|
|
super(sender);
|
|
|
|
this.faction = faction;
|
|
|
|
this.warp = warp;
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|