diff --git a/bootstrap/geyser/src/main/java/com/rtm516/mcxboxbroadcast/bootstrap/geyser/MCXboxBroadcastExtension.java b/bootstrap/geyser/src/main/java/com/rtm516/mcxboxbroadcast/bootstrap/geyser/MCXboxBroadcastExtension.java index 78de721..1365fa0 100644 --- a/bootstrap/geyser/src/main/java/com/rtm516/mcxboxbroadcast/bootstrap/geyser/MCXboxBroadcastExtension.java +++ b/bootstrap/geyser/src/main/java/com/rtm516/mcxboxbroadcast/bootstrap/geyser/MCXboxBroadcastExtension.java @@ -132,6 +132,13 @@ public void onPostInitialize(GeyserPostInitializeEvent event) { // Load the config file config = ConfigLoader.load(this, MCXboxBroadcastExtension.class, ExtensionConfig.class); + // Make sure we loaded a config and disable the extension if we didn't + if (config == null) { + logger.error("Failed to load config, extension will not start!"); + this.disable(); + return; + } + // TODO Support multiple notification types notificationManager = new SlackNotificationManager(logger, config.slackWebhook());