diff options
Diffstat (limited to 'index.js')
-rw-r--r-- | index.js | 31 |
1 files changed, 17 insertions, 14 deletions
@@ -23,21 +23,24 @@ if (FileLib.read("soopyAddonsData", "deletesoopyv1please.txt") === "true") { ChatLib.command("ct reload", true) }).start() } else { - 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 (maby this should be part of mappings module, but i put it here so it doesent try to load the first load page thingo) - FileLib.write("soopyAddonsData", "firstload.txt", "true") - Thread.sleep(2000) - - ChatLib.command("ct reload", true) - }).start() - } else { - let a = register("worldLoad", () => { + let a = register("worldLoad", () => { + if (FileLib.read("soopyAddonsData", "firstload.txt") !== "true") { + b = register("tick", () => { + 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 (maby this should be part of mappings module, but i put it here so it doesent try to load the first load page thingo) + FileLib.write("soopyAddonsData", "firstload.txt", "true") + Thread.sleep(2000) + + ChatLib.command("ct reload", true) + }).start() + + b.unregister() + }) + } else { new SoopyAddons() - - a.unregister() - }) - } + } + a.unregister() + }) } if (new File("./config/ChatTriggers/modules/SoopyV2UpdateButtonPatcher").exists()) { |