use of net.redstoneore.legacyfactions.event.EventFactionsRelation in project Conquer by xXAndrew28Xx.
the class LFEventForwarder method onRelationChange.
@EventHandler
public void onRelationChange(EventFactionsRelation event) {
Relation oldRelation = plugin.translate(event.getOldRelation());
Relation newRelation = plugin.translate(event.getRelation());
ConquerFaction faction = LFFaction.get(plugin, event.getFaction());
ConquerFaction targetFaction = LFFaction.get(plugin, event.getTargetFaction());
ConquerFactionRelationEvent forwardEvent = new ConquerFactionRelationEvent(faction, targetFaction, oldRelation, newRelation);
callEvent(forwardEvent);
}
Aggregations