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

45 lines
1.0 KiB
Java
Raw Normal View History

package com.massivecraft.factions.event;
2014-04-04 20:55:21 +02:00
import com.massivecraft.factions.Faction;
import com.massivecraft.factions.struct.Relation;
import org.bukkit.event.Event;
import org.bukkit.event.HandlerList;
2014-04-04 20:55:21 +02:00
public class FactionRelationEvent extends Event {
private static final HandlerList handlers = new HandlerList();
private Faction fsender;
private Faction ftarget;
private Relation foldrel;
private Relation frel;
public FactionRelationEvent(Faction sender, Faction target, Relation oldrel, Relation rel) {
2014-07-01 21:52:40 +02:00
fsender = sender; ftarget = target; foldrel = oldrel; frel = rel;
2014-04-04 20:55:21 +02:00
}
public HandlerList getHandlers() {
return handlers;
}
public static HandlerList getHandlerList() {
return handlers;
}
public Relation getOldRelation() {
return foldrel;
}
public Relation getRelation() {
return frel;
}
public Faction getFaction() {
return fsender;
}
2014-04-04 20:55:21 +02:00
public Faction getTargetFaction() {
return ftarget;
}
}