Skip to content

Commit 6ccaea9

Browse files
authored
Add files via upload
Small Bug where there is no directory exists check for the new plugins folder
1 parent 4c8e25b commit 6ccaea9

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

index.mjs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,8 @@ export var versionCode = 346;
5757
let powDifficulty = 7;
5858

5959

60+
// check if needed directories are setup
61+
checkServerDirectories()
6062

6163
// check if config file exists
6264
checkConfigFile()
@@ -305,8 +307,6 @@ checkVersionUpdate();
305307
}
306308

307309

308-
// check if needed directories are setup
309-
checkServerDirectories()
310310

311311

312312
consolas(" ", );

modules/functions/io.mjs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,11 @@ export function checkServerDirectories(){
9494
if (!fs.existsSync("./public/uploads")){
9595
fs.mkdirSync("./public/uploads");
9696
}
97+
98+
// User Plugins Folder
99+
if (!fs.existsSync("./plugins")){
100+
fs.mkdirSync("./plugins");
101+
}
97102
}
98103

99104
export function checkConfigFile(){

0 commit comments

Comments
 (0)