use of me.andrew28.addons.conquer.api.events.ConquerFactionDisbandEvent in project Conquer by xXAndrew28Xx.
the class SFEventForwarder method onFactionDisband.
@EventHandler
public void onFactionDisband(FactionDisbandEvent event) {
ConquerFactionDisbandEvent forwardEvent = new ConquerFactionDisbandEvent(SFFaction.get(plugin, event.getFaction()), SFPlayer.get(plugin, event.getFPlayer()));
callEvent(forwardEvent);
if (forwardEvent.isCancelled()) {
event.setCancelled(true);
}
}
use of me.andrew28.addons.conquer.api.events.ConquerFactionDisbandEvent in project Conquer by xXAndrew28Xx.
the class FOEventForwarder method onFactionDisband.
@EventHandler
public void onFactionDisband(FactionDisbandEvent event) {
ConquerFactionDisbandEvent forwardEvent = new ConquerFactionDisbandEvent(FOFaction.get(plugin, event.getFaction()), FOPlayer.get(plugin, event.getFPlayer()));
callEvent(forwardEvent);
if (forwardEvent.isCancelled()) {
event.setCancelled(true);
}
}
use of me.andrew28.addons.conquer.api.events.ConquerFactionDisbandEvent in project Conquer by xXAndrew28Xx.
the class FUEventForwarder method onFactionDisband.
@EventHandler
public void onFactionDisband(FactionDisbandEvent event) {
ConquerFactionDisbandEvent forwardEvent = new ConquerFactionDisbandEvent(FUFaction.get(plugin, event.getFaction()), FUPlayer.get(plugin, event.getFPlayer()));
callEvent(forwardEvent);
if (forwardEvent.isCancelled()) {
event.setCancelled(true);
}
}
use of me.andrew28.addons.conquer.api.events.ConquerFactionDisbandEvent in project Conquer by xXAndrew28Xx.
the class LFEventForwarder method onFactionDisband.
@EventHandler
public void onFactionDisband(EventFactionsDisband event) {
ConquerFactionDisbandEvent forwardEvent = new ConquerFactionDisbandEvent(LFFaction.get(plugin, event.getFaction()), LFPlayer.get(plugin, event.getFPlayer()));
callEvent(forwardEvent);
if (forwardEvent.isCancelled()) {
event.setCancelled(true);
}
}
use of me.andrew28.addons.conquer.api.events.ConquerFactionDisbandEvent in project Conquer by xXAndrew28Xx.
the class MSEventForwarder method onFactionDisband.
@EventHandler
public void onFactionDisband(EventFactionsDisband event) {
ConquerFactionDisbandEvent forwardEvent = new ConquerFactionDisbandEvent(MSFaction.get(plugin, event.getFaction()), MSPlayer.get(plugin, event.getMPlayer()));
callEvent(forwardEvent);
if (forwardEvent.isCancelled()) {
event.setCancelled(true);
}
}
Aggregations