diff options
author | Linnea Gräf <nea@nea.moe> | 2024-09-24 13:16:55 +0200 |
---|---|---|
committer | Linnea Gräf <nea@nea.moe> | 2024-09-24 13:16:55 +0200 |
commit | fb40ab45f0b4979420bae066da2244f4fdd52db8 (patch) | |
tree | 66afc558aade18c996b23da47a02f6726fb656aa /src/main/kotlin/UltraNotifier.kt | |
parent | 8a5c5d45f87f38d9a7484b73c0505b95e63a21f1 (diff) | |
download | ultra-notifier-fb40ab45f0b4979420bae066da2244f4fdd52db8.tar.gz ultra-notifier-fb40ab45f0b4979420bae066da2244f4fdd52db8.tar.bz2 ultra-notifier-fb40ab45f0b4979420bae066da2244f4fdd52db8.zip |
snapshot
Diffstat (limited to 'src/main/kotlin/UltraNotifier.kt')
-rw-r--r-- | src/main/kotlin/UltraNotifier.kt | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/main/kotlin/UltraNotifier.kt b/src/main/kotlin/UltraNotifier.kt index f1bb8ff..cce83e9 100644 --- a/src/main/kotlin/UltraNotifier.kt +++ b/src/main/kotlin/UltraNotifier.kt @@ -1,7 +1,8 @@ package moe.nea.ultranotifier -import moe.nea.ultranotifier.commands.Commands import moe.nea.ultranotifier.event.RegistrationFinishedEvent +import moe.nea.ultranotifier.event.UltraEvent +import moe.nea.ultranotifier.event.UltraNotifierEvents import moe.nea.ultranotifier.init.NeaMixinConfig import java.io.File @@ -18,7 +19,10 @@ object UltraNotifier { for (mixinPlugin in NeaMixinConfig.getMixinPlugins()) { logger.info("Loaded ${mixinPlugin.mixins.size} mixins for ${mixinPlugin.mixinPackage}.") } - Commands.init() + AllModules.allModules.forEach { + UltraNotifierEvents.register(it) + it.init() + } RegistrationFinishedEvent().post() |