From 1b89623d96e16c30caf067854dcb41f8f2779705 Mon Sep 17 00:00:00 2001 From: Soopyboo32 <49228220+Soopyboo32@users.noreply.github.com> Date: Sun, 16 Jan 2022 13:48:28 +0800 Subject: add auto ct load on first install --- index.js | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) 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 -- cgit