2012-03-11 18:28:31 +01:00
|
|
|
package com.massivecraft.factions.event;
|
|
|
|
|
|
|
|
import org.bukkit.event.Event;
|
|
|
|
import org.bukkit.event.HandlerList;
|
|
|
|
|
|
|
|
import com.massivecraft.factions.Faction;
|
|
|
|
import com.massivecraft.factions.FPlayer;
|
|
|
|
import org.bukkit.entity.Player;
|
|
|
|
|
|
|
|
public class LandUnclaimAllEvent extends Event
|
|
|
|
{
|
|
|
|
private static final HandlerList handlers = new HandlerList();
|
|
|
|
|
2012-03-13 14:27:03 +01:00
|
|
|
private Faction faction;
|
|
|
|
private FPlayer fplayer;
|
2012-03-11 18:28:31 +01:00
|
|
|
|
|
|
|
public LandUnclaimAllEvent(Faction f, FPlayer p)
|
|
|
|
{
|
|
|
|
faction = f;
|
|
|
|
fplayer = p;
|
|
|
|
}
|
|
|
|
|
|
|
|
public HandlerList getHandlers()
|
|
|
|
{
|
|
|
|
return handlers;
|
|
|
|
}
|
|
|
|
|
|
|
|
public static HandlerList getHandlerList()
|
|
|
|
{
|
|
|
|
return handlers;
|
|
|
|
}
|
|
|
|
|
|
|
|
public Faction getFaction()
|
|
|
|
{
|
|
|
|
return faction;
|
|
|
|
}
|
|
|
|
|
2012-03-13 14:27:03 +01:00
|
|
|
public String getFactionId()
|
|
|
|
{
|
|
|
|
return faction.getId();
|
|
|
|
}
|
2012-03-11 18:28:31 +01:00
|
|
|
|
2012-03-13 14:27:03 +01:00
|
|
|
public String getFactionTag()
|
|
|
|
{
|
|
|
|
return faction.getTag();
|
|
|
|
}
|
2012-03-11 18:28:31 +01:00
|
|
|
|
2012-03-13 14:27:03 +01:00
|
|
|
public FPlayer getFPlayer()
|
|
|
|
{
|
|
|
|
return fplayer;
|
|
|
|
}
|
2012-03-11 18:28:31 +01:00
|
|
|
|
2012-03-13 14:27:03 +01:00
|
|
|
public Player getPlayer()
|
|
|
|
{
|
|
|
|
return fplayer.getPlayer();
|
|
|
|
}
|
2012-03-11 18:28:31 +01:00
|
|
|
}
|