From acc0c4fb165e49bc47b1d718afd625e84b53aecf Mon Sep 17 00:00:00 2001 From: NoobishSVK Date: Fri, 13 Sep 2024 15:12:21 +0200 Subject: [PATCH] hotfix for server startup --- server/index.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/server/index.js b/server/index.js index b1818c4..fa1e542 100644 --- a/server/index.js +++ b/server/index.js @@ -28,7 +28,6 @@ const { logDebug, logError, logInfo, logWarn, logChat } = require('./console'); const storage = require('./storage'); const { serverConfig, configExists } = require('./server_config'); const pjson = require('../package.json'); -const config = require('./../config.json'); // Function to find server files based on the plugins listed in config function findServerFiles(plugins) { @@ -65,7 +64,7 @@ function startPluginsWithDelay(plugins, delay) { } // Get all plugins from config and find corresponding server files -const plugins = findServerFiles(config.plugins); +const plugins = findServerFiles(serverConfig.plugins); // Start the first plugin after 3 seconds, then the rest with 3 seconds delay if (plugins.length > 0) {