Search in sources :

Example 1 with TriggerReactorStopEvent

use of io.github.wysohn.triggerreactor.sponge.manager.event.TriggerReactorStopEvent in project TriggerReactor by wysohn.

the class TriggerReactor method onDisable.

@Listener
public void onDisable(GameStoppingServerEvent e) {
    try {
        Sponge.getEventManager().post(new TriggerReactorStopEvent(TriggerReactor.this));
    } finally {
        getLogger().info("Shutting down the managers...");
        onCoreDisable();
        getLogger().info("OK");
        getLogger().info("Finalizing the scheduled script executions...");
        CACHED_THREAD_POOL.shutdown();
        getLogger().info("Shut down complete!");
    }
}
Also used : TriggerReactorStopEvent(io.github.wysohn.triggerreactor.sponge.manager.event.TriggerReactorStopEvent) Listener(org.spongepowered.api.event.Listener)

Aggregations

TriggerReactorStopEvent (io.github.wysohn.triggerreactor.sponge.manager.event.TriggerReactorStopEvent)1 Listener (org.spongepowered.api.event.Listener)1