diff --git a/index.mjs b/index.mjs index 94d5bfd..8c9497b 100644 --- a/index.mjs +++ b/index.mjs @@ -57,6 +57,8 @@ export var versionCode = 346; let powDifficulty = 7; +// check if needed directories are setup +checkServerDirectories() // check if config file exists checkConfigFile() @@ -305,8 +307,6 @@ checkVersionUpdate(); } -// check if needed directories are setup -checkServerDirectories() consolas(" ", ); diff --git a/modules/functions/io.mjs b/modules/functions/io.mjs index ac1b6b0..9d0dd08 100644 --- a/modules/functions/io.mjs +++ b/modules/functions/io.mjs @@ -94,6 +94,11 @@ export function checkServerDirectories(){ if (!fs.existsSync("./public/uploads")){ fs.mkdirSync("./public/uploads"); } + + // User Plugins Folder + if (!fs.existsSync("./plugins")){ + fs.mkdirSync("./plugins"); + } } export function checkConfigFile(){