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 {
|
|
|
|
|
|
|
|
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.
|
|
|
|
*/
|
2014-07-09 21:00:16 +02:00
|
|
|
public Faction getFaction() {
|
2014-07-09 21:01:53 +02:00
|
|
|
return this.faction;
|
2014-07-09 21:00:16 +02:00
|
|
|
}
|
|
|
|
|
2018-12-09 03:13:18 +01:00
|
|
|
@Override
|
2014-07-09 21:00:16 +02:00
|
|
|
public HandlerList getHandlers() {
|
|
|
|
return handlers;
|
|
|
|
}
|
2014-07-09 21:01:53 +02:00
|
|
|
|
2014-07-09 21:00:16 +02:00
|
|
|
}
|