diff options
author | Linnea Gräf <nea@nea.moe> | 2024-05-21 21:17:41 +0200 |
---|---|---|
committer | Linnea Gräf <nea@nea.moe> | 2024-05-21 21:17:41 +0200 |
commit | f25b818d9d41e2bb3969399cfc8bbff976b5aad7 (patch) | |
tree | 5f9137b374dfca42f596851c85116c9da181fa50 /src/main/kotlin/UltraNotifier.kt | |
download | ultra-notifier-f25b818d9d41e2bb3969399cfc8bbff976b5aad7.tar.gz ultra-notifier-f25b818d9d41e2bb3969399cfc8bbff976b5aad7.tar.bz2 ultra-notifier-f25b818d9d41e2bb3969399cfc8bbff976b5aad7.zip |
Init
Diffstat (limited to 'src/main/kotlin/UltraNotifier.kt')
-rw-r--r-- | src/main/kotlin/UltraNotifier.kt | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/src/main/kotlin/UltraNotifier.kt b/src/main/kotlin/UltraNotifier.kt new file mode 100644 index 0000000..e6ce590 --- /dev/null +++ b/src/main/kotlin/UltraNotifier.kt @@ -0,0 +1,24 @@ +package moe.nea.ultranotifier + +import moe.nea.ultranotifier.init.NeaMixinConfig +import java.io.File + +object UltraNotifier { + val logger = +//#if MC == 10809 +//$$ org.apache.logging.log4j.LogManager.getLogger("UltraNotifier")!! +//#else + org.slf4j.LoggerFactory.getLogger("UltraNotifier")!! +//#endif + + fun onStartup() { + logger.info("Started on ${Constants.MINECRAFT_VERSION} ${Constants.PLATFORM} with version ${Constants.VERSION}!") + for (mixinPlugin in NeaMixinConfig.getMixinPlugins()) { + logger.info("Loaded ${mixinPlugin.mixins.size} mixins for ${mixinPlugin.mixinPackage}.") + } + } + + val configFolder = File("config/ultra-notifier").also { + it.mkdirs() + } +} |