aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSoopyboo32 <49228220+Soopyboo32@users.noreply.github.com>2022-01-16 13:48:28 +0800
committerSoopyboo32 <49228220+Soopyboo32@users.noreply.github.com>2022-01-16 13:48:28 +0800
commit1b89623d96e16c30caf067854dcb41f8f2779705 (patch)
tree657e40407e2addb69516a6589f5972815beafe9b
parentb21ee59786d9fa1bb1fa9fecd8bd0c2722dc6309 (diff)
downloadSoopyV2-1b89623d96e16c30caf067854dcb41f8f2779705.tar.gz
SoopyV2-1b89623d96e16c30caf067854dcb41f8f2779705.tar.bz2
SoopyV2-1b89623d96e16c30caf067854dcb41f8f2779705.zip
add auto ct load on first install
-rw-r--r--index.js13
1 files changed, 12 insertions, 1 deletions
diff --git a/index.js b/index.js
index 74c2c3d..956c65c 100644
--- a/index.js
+++ b/index.js
@@ -20,5 +20,16 @@ if(FileLib.read("soopyAddonsData", "deletesoopyv1please.txt") === "true"){
ChatLib.command("ct reload", true)
}).start()
}else{
- new SoopyAddons()
+ if(FileLib.read("soopyAddonsData", "firstload.txt") !== "true"){
+ new Thread(()=>{
+ ChatLib.chat("&7Loading SoopyV2 required modules...") //idk what to say to chat, but it requires an extra ct load after starting to load stuff like mappings
+ Thread.sleep(2000)
+
+ FileLib.write("soopyAddonsData", "firstload.txt", "true")
+
+ ChatLib.command("ct reload", true)
+ }).start()
+ }else{
+ new SoopyAddons()
+ }
} \ No newline at end of file