diff options
author | Soopyboo32 <49228220+Soopyboo32@users.noreply.github.com> | 2021-12-10 12:34:35 +0800 |
---|---|---|
committer | Soopyboo32 <49228220+Soopyboo32@users.noreply.github.com> | 2021-12-10 12:34:35 +0800 |
commit | db4d8928b7b6d09bc599d35294f9622371f6f9ea (patch) | |
tree | 15b07cc420e9dcb20fb180b6c10ff0b1a5aa4255 /features/improvements/index.js | |
parent | 82cbf132fae1d09b45e79b20840d10281b389976 (diff) | |
download | SoopyV2-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.js | 9 |
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") + }) } |