aboutsummaryrefslogtreecommitdiff
path: root/index.js
diff options
context:
space:
mode:
Diffstat (limited to 'index.js')
-rw-r--r--index.js14
1 files changed, 13 insertions, 1 deletions
diff --git a/index.js b/index.js
index ee82dcc..650c898 100644
--- a/index.js
+++ b/index.js
@@ -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