diff options
Diffstat (limited to 'index.js')
-rw-r--r-- | index.js | 14 |
1 files changed, 13 insertions, 1 deletions
@@ -12,4 +12,16 @@ register("command", ()=>{ require("./mappings/mappingCreator.js") }).setName("soopyreloadmappingsfile") -new SoopyAddons() +if(FileLib.read("soopyAddonsData", "deletesoopyv1please.txt") === "true"){ + new Thread(()=>{ + Thread.sleep(2000) + const File = Java.type("java.io.File") + FileLib.deleteDirectory(new File("./config/ChatTriggers/modules/soopyAddons")) + + FileLib.write("soopyAddonsData", "deletesoopyv1please.txt", "false") + + ChatLib.command("ct reload", true) + }).start() +}else{ + new SoopyAddons() +}
\ No newline at end of file |