use of me.andrew28.addons.conquer.api.events.ConquerFactionRelationWishEvent in project Conquer by xXAndrew28Xx.
the class FUEventForwarder method onRelationWish.
@EventHandler
public void onRelationWish(FactionRelationWishEvent event) {
ConquerFactionRelationWishEvent forwardEvent = new ConquerFactionRelationWishEvent(FUPlayer.get(plugin, event.getfPlayer()), FUFaction.get(plugin, event.getFaction()), FUFaction.get(plugin, event.getTargetFaction()), plugin.translate(event.getCurrentRelation()), plugin.translate(event.getTargetRelation()));
callEvent(forwardEvent);
if (forwardEvent.isCancelled()) {
event.setCancelled(true);
}
}
Aggregations