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

38 lines
786 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;
}
2018-07-12 18:11:07 +02:00
public static HandlerList getHandlerList() {
return handlers;
}
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;
}
@Override
public HandlerList getHandlers() {
return handlers;
}
2014-07-09 21:01:53 +02:00
}