aboutsummaryrefslogtreecommitdiff
path: root/features
diff options
context:
space:
mode:
authorSoopyboo32 <49228220+Soopyboo32@users.noreply.github.com>2021-12-10 12:34:35 +0800
committerSoopyboo32 <49228220+Soopyboo32@users.noreply.github.com>2021-12-10 12:34:35 +0800
commitdb4d8928b7b6d09bc599d35294f9622371f6f9ea (patch)
tree15b07cc420e9dcb20fb180b6c10ff0b1a5aa4255 /features
parent82cbf132fae1d09b45e79b20840d10281b389976 (diff)
downloadSoopyV2-db4d8928b7b6d09bc599d35294f9622371f6f9ea.tar.gz
SoopyV2-db4d8928b7b6d09bc599d35294f9622371f6f9ea.tar.bz2
SoopyV2-db4d8928b7b6d09bc599d35294f9622371f6f9ea.zip
add dung command
Diffstat (limited to 'features')
-rw-r--r--features/cosmetics/index.js1
-rw-r--r--features/improvements/index.js9
2 files changed, 10 insertions, 0 deletions
diff --git a/features/cosmetics/index.js b/features/cosmetics/index.js
index 1eb73d7..4803999 100644
--- a/features/cosmetics/index.js
+++ b/features/cosmetics/index.js
@@ -39,6 +39,7 @@ class Cosmetics extends Feature {
this.registerEvent("playerLeft", this.playerLeft)
this.registerEvent("worldLoad", this.worldLoad)
this.registerStep(false, 5, this.step)
+ this.registerStep(false, 1, this.step1)
this.registerStep(false, 60*10, ()=>{
new Thread(()=>{this.loadCosmeticsData.call(this)}).start()
})
diff --git a/features/improvements/index.js b/features/improvements/index.js
index 32b1641..c2b098a 100644
--- a/features/improvements/index.js
+++ b/features/improvements/index.js
@@ -20,6 +20,15 @@ class Improvements extends Feature {
ChatLib.chat(color + "&m" + ChatLib.getChatBreak(" ") + "&r");
}
}).trigger.triggerIfCanceled(false)
+
+ this.registerCommand("warp", (...args)=>{
+ if(args[0] === "dung") args[0] = "dungeon_hub"
+
+ ChatLib.command("warp " + args.join(" "))
+ })
+ this.registerCommand("dung", (...args)=>{
+ ChatLib.command("warp dungeon_hub")
+ })
}