2012-03-11 18:28:31 +01:00
|
|
|
package com.massivecraft.factions.event;
|
|
|
|
|
2013-04-19 12:27:39 +02:00
|
|
|
import org.bukkit.command.CommandSender;
|
2012-03-11 18:28:31 +01:00
|
|
|
import org.bukkit.event.HandlerList;
|
|
|
|
|
|
|
|
import com.massivecraft.factions.Faction;
|
2013-04-19 12:27:39 +02:00
|
|
|
import com.massivecraft.factions.Rel;
|
2012-03-11 18:28:31 +01:00
|
|
|
|
2013-04-19 12:27:39 +02:00
|
|
|
|
|
|
|
public class FactionsEventRelationChange extends FactionsEventAbstractSender
|
|
|
|
{
|
2013-04-10 09:34:14 +02:00
|
|
|
// -------------------------------------------- //
|
|
|
|
// REQUIRED EVENT CODE
|
|
|
|
// -------------------------------------------- //
|
|
|
|
|
2012-03-11 18:28:31 +01:00
|
|
|
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-19 12:27:39 +02:00
|
|
|
|
2013-04-10 09:34:14 +02:00
|
|
|
// -------------------------------------------- //
|
|
|
|
// FIELDS
|
|
|
|
// -------------------------------------------- //
|
2013-04-19 12:27:39 +02:00
|
|
|
|
2013-04-10 09:34:14 +02:00
|
|
|
private final Faction faction;
|
|
|
|
public Faction getFaction() { return this.faction; }
|
|
|
|
|
2013-04-19 12:27:39 +02:00
|
|
|
private final Faction otherFaction;
|
|
|
|
public Faction getOtherFaction() { return this.otherFaction; }
|
2013-04-10 09:34:14 +02:00
|
|
|
|
2013-04-19 12:27:39 +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
|
|
|
|
// -------------------------------------------- //
|
2013-04-19 12:27:39 +02:00
|
|
|
|
|
|
|
public FactionsEventRelationChange(CommandSender sender, Faction faction, Faction otherFaction, Rel newRelation)
|
2013-04-10 09:34:14 +02:00
|
|
|
{
|
2013-04-19 12:27:39 +02:00
|
|
|
super(sender);
|
2013-04-10 09:34:14 +02:00
|
|
|
this.faction = faction;
|
2013-04-19 12:27:39 +02:00
|
|
|
this.otherFaction = otherFaction;
|
|
|
|
this.newRelation = newRelation;
|
2013-04-10 09:34:14 +02:00
|
|
|
}
|
|
|
|
|
2013-04-19 12:27:39 +02:00
|
|
|
}
|