blob: f1bb8ff2408743d7940ae98721c7f8df7b6868b9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
package moe.nea.ultranotifier
import moe.nea.ultranotifier.commands.Commands
import moe.nea.ultranotifier.event.RegistrationFinishedEvent
import moe.nea.ultranotifier.init.NeaMixinConfig
import java.io.File
object UltraNotifier {
val logger =
//#if MC <= 11404
//$$ 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}.")
}
Commands.init()
RegistrationFinishedEvent().post()
}
val configFolder = File("config/ultra-notifier").also {
it.mkdirs()
}
}
|