From 504fb46c284cc7bbe5e31760ca126b6f6077bf7e Mon Sep 17 00:00:00 2001 From: Vortrex <3858226+VortrexFTW@users.noreply.github.com> Date: Tue, 14 Jun 2022 06:29:42 -0500 Subject: [PATCH] Wrong class name --- scripts/server/config.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/scripts/server/config.js b/scripts/server/config.js index ae5e6f74..e2276cb4 100644 --- a/scripts/server/config.js +++ b/scripts/server/config.js @@ -10,7 +10,7 @@ /** * @class Representing data for server configuration */ -class ServerData { +class ServerConfigData { constructor(dbAssoc = false) { this.databaseId = 0; this.needsSaved = false; @@ -126,6 +126,8 @@ class ServerData { } }; +// =========================================================================== + let serverConfig = false; let gameConfig = false; @@ -220,7 +222,6 @@ let globalConfig = { function initConfigScript() { logToConsole(LOG_INFO, "[VRR.Config]: Initializing config script ..."); - applyConfigToServer(serverConfig); logToConsole(LOG_INFO, "[VRR.Config]: Config script initialized!"); } @@ -1081,6 +1082,8 @@ function loadServerConfig() { logToConsole(LOG_ERROR, `[VRR.Config] Could not load server configuration for game ${getGame()} and port ${getServerPort}`); thisResource.stop(); } + + logToConsole(LOG_DEBUG | LOG_WARN, `Server ID: ${serverConfig.databaseId}`); } // =========================================================================== \ No newline at end of file