Factions3/src/main/java/com/massivecraft/factions/event/EventFactionsRelationChange.java

46 lines
1.4 KiB
Java
Raw Normal View History

package com.massivecraft.factions.event;
import org.bukkit.command.CommandSender;
import org.bukkit.event.HandlerList;
import com.massivecraft.factions.Rel;
2013-04-22 09:37:53 +02:00
import com.massivecraft.factions.entity.Faction;
2014-06-04 16:47:01 +02:00
public class EventFactionsRelationChange extends EventFactionsAbstractSender
{
2013-04-10 09:34:14 +02:00
// -------------------------------------------- //
// REQUIRED EVENT CODE
// -------------------------------------------- //
private static final HandlerList handlers = new HandlerList();
2013-04-10 09:34:14 +02:00
@Override public HandlerList getHandlers() { return handlers; }
public static HandlerList getHandlerList() { return handlers; }
2013-04-10 09:34:14 +02:00
// -------------------------------------------- //
// FIELDS
// -------------------------------------------- //
2013-04-10 09:34:14 +02:00
private final Faction faction;
public Faction getFaction() { return this.faction; }
private final Faction otherFaction;
public Faction getOtherFaction() { return this.otherFaction; }
2013-04-10 09:34:14 +02:00
private Rel newRelation;
public Rel getNewRelation() { return this.newRelation; }
public void setNewRelation(Rel newRelation) { this.newRelation = newRelation; }
2013-04-10 09:34:14 +02:00
// -------------------------------------------- //
// CONSTRUCT
// -------------------------------------------- //
2014-06-04 16:47:01 +02:00
public EventFactionsRelationChange(CommandSender sender, Faction faction, Faction otherFaction, Rel newRelation)
2013-04-10 09:34:14 +02:00
{
super(sender);
2013-04-10 09:34:14 +02:00
this.faction = faction;
this.otherFaction = otherFaction;
this.newRelation = newRelation;
2013-04-10 09:34:14 +02:00
}
}