aboutsummaryrefslogtreecommitdiff
path: root/features/improvements/index.js
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/improvements/index.js
parent82cbf132fae1d09b45e79b20840d10281b389976 (diff)
downloadSoopyV2-db4d8928b7b6d09bc599d35294f9622371f6f9ea.tar.gz
SoopyV2-db4d8928b7b6d09bc599d35294f9622371f6f9ea.tar.bz2
SoopyV2-db4d8928b7b6d09bc599d35294f9622371f6f9ea.zip
add dung command
Diffstat (limited to 'features/improvements/index.js')
-rw-r--r--features/improvements/index.js9
1 files changed, 9 insertions, 0 deletions
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")
+ })
}