2014-07-09 21:00:16 +02:00
|
|
|
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.
|
|
|
|
*/
|
2014-07-09 21:00:16 +02:00
|
|
|
public class FactionEvent extends Event {
|
|
|
|
|
2019-03-03 04:51:21 +01:00
|
|
|
private static final HandlerList handlers = new HandlerList();
|
|
|
|
private final Faction faction;
|
|
|
|
|
|
|
|
public FactionEvent(Faction faction) {
|
|
|
|
this.faction = faction;
|
|
|
|
}
|
|
|
|
|
|
|
|
public static HandlerList getHandlerList() {
|
|
|
|
return handlers;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Get the Faction involved in the event.
|
|
|
|
*
|
|
|
|
* @return faction involved in the event.
|
|
|
|
*/
|
|
|
|
public Faction getFaction() {
|
|
|
|
return this.faction;
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public HandlerList getHandlers() {
|
|
|
|
return handlers;
|
|
|
|
}
|
2014-07-09 21:01:53 +02:00
|
|
|
|
2014-07-09 21:00:16 +02:00
|
|
|
}
|