Saber-Factions/src/main/java/com/massivecraft/factions/event/FactionEvent.java

37 lines
772 B
Java
Raw Normal View History

package com.massivecraft.factions.event;
import com.massivecraft.factions.Faction;
import org.bukkit.event.Event;
import org.bukkit.event.HandlerList;
2014-07-09 21:01:53 +02:00
/**
* Represents an event involving a Faction.
*/
public class FactionEvent extends Event {
private static final HandlerList handlers = new HandlerList();
private final Faction faction;
public FactionEvent(Faction faction) {
this.faction = faction;
}
2014-07-09 21:01:53 +02:00
/**
* Get the Faction involved in the event.
*
* @return faction involved in the event.
*/
public Faction getFaction() {
2014-07-09 21:01:53 +02:00
return this.faction;
}
public HandlerList getHandlers() {
return handlers;
}
2014-07-09 21:01:53 +02:00
public static HandlerList getHandlerList() {
return handlers;
}
}