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:");
}
}
Aggregations