1
0
mirror of https://github.com/KubaPro010/fm-dx-webserver.git synced 2026-02-26 22:13:53 +01:00

hotfix for server startup

This commit is contained in:
NoobishSVK
2024-09-13 15:12:21 +02:00
parent 046f42d2cf
commit acc0c4fb16

View File

@@ -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) {