Search in sources :

Example 1 with ConquerFactionDisbandEvent

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);
    }
}
Also used : ConquerFactionDisbandEvent(me.andrew28.addons.conquer.api.events.ConquerFactionDisbandEvent) EventHandler(org.bukkit.event.EventHandler)

Example 2 with ConquerFactionDisbandEvent

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);
    }
}
Also used : ConquerFactionDisbandEvent(me.andrew28.addons.conquer.api.events.ConquerFactionDisbandEvent) EventHandler(org.bukkit.event.EventHandler)

Example 3 with ConquerFactionDisbandEvent

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);
    }
}
Also used : ConquerFactionDisbandEvent(me.andrew28.addons.conquer.api.events.ConquerFactionDisbandEvent) EventHandler(org.bukkit.event.EventHandler)

Example 4 with ConquerFactionDisbandEvent

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);
    }
}
Also used : ConquerFactionDisbandEvent(me.andrew28.addons.conquer.api.events.ConquerFactionDisbandEvent) EventHandler(org.bukkit.event.EventHandler)

Example 5 with ConquerFactionDisbandEvent

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);
    }
}
Also used : ConquerFactionDisbandEvent(me.andrew28.addons.conquer.api.events.ConquerFactionDisbandEvent) EventHandler(org.bukkit.event.EventHandler)

Aggregations

ConquerFactionDisbandEvent (me.andrew28.addons.conquer.api.events.ConquerFactionDisbandEvent)5 EventHandler (org.bukkit.event.EventHandler)5