Search in sources :

Example 1 with ConsoleLogger

use of com.epicnicity322.epicpluginlib.core.logger.ConsoleLogger in project PlayMoreSounds by Epicnicity322.

the class AddonEventManager method callLoadUnloadEvent.

static void callLoadUnloadEvent(PMSAddon addon, ConsoleLogger<?> logger) {
    for (AddonLoadUnloadEvent event : registeredLoadUnloadEvents) try {
        event.onLoadUnload(addon);
    } catch (Throwable t) {
        logger.log("&eException while calling addon load unload event: " + t.getMessage());
        PlayMoreSoundsCore.getErrorHandler().report(t, "Call addon load unload event exception:");
    }
}
Also used : AddonLoadUnloadEvent(com.epicnicity322.playmoresounds.core.addons.events.AddonLoadUnloadEvent)

Aggregations

AddonLoadUnloadEvent (com.epicnicity322.playmoresounds.core.addons.events.AddonLoadUnloadEvent)1