aboutsummaryrefslogtreecommitdiff
path: root/features/globalSettings
diff options
context:
space:
mode:
authorSoopyboo32 <49228220+Soopyboo32@users.noreply.github.com>2022-09-08 16:13:38 +0800
committerSoopyboo32 <49228220+Soopyboo32@users.noreply.github.com>2022-09-08 16:13:38 +0800
commitfe52032549be10a1588af06ec433aa917aec114a (patch)
tree8ff4bea4c5cd4635725a76c6111235101452c3fd /features/globalSettings
parentadb4dd3c8f01c4b732cd5b85ccdcffd4b2138737 (diff)
parent4c21586ce70aa65fa0a70c818f30016ae7bf62a7 (diff)
downloadSoopyV2-fe52032549be10a1588af06ec433aa917aec114a.tar.gz
SoopyV2-fe52032549be10a1588af06ec433aa917aec114a.tar.bz2
SoopyV2-fe52032549be10a1588af06ec433aa917aec114a.zip
Merge branch 'master' of https://github.com/Soopyboo32/SoopyV2
Diffstat (limited to 'features/globalSettings')
-rw-r--r--features/globalSettings/index.js9
-rw-r--r--features/globalSettings/warps.json41
2 files changed, 50 insertions, 0 deletions
diff --git a/features/globalSettings/index.js b/features/globalSettings/index.js
index e8b86ab..9ffbd36 100644
--- a/features/globalSettings/index.js
+++ b/features/globalSettings/index.js
@@ -141,6 +141,15 @@ class GlobalSettings extends Feature {
}
})
+ this.warps = JSON.parse(FileLib.read("SoopyV2", "features/globalSettings/warps.json"))
+
+ this.registerCommand("warp", (...name) => {
+ //send command to server
+ ChatLib.command("warp " + (name[0] || ""));
+ }, (args) => {
+ return this.warps.filter(v => v.toLowerCase().startsWith(args[0]))
+ })
+
this.registerStep(true, 4, this.mobThings)
this.firstPageSettings = [this.darkTheme]
diff --git a/features/globalSettings/warps.json b/features/globalSettings/warps.json
new file mode 100644
index 0000000..e84c78c
--- /dev/null
+++ b/features/globalSettings/warps.json
@@ -0,0 +1,41 @@
+[
+ "hub",
+ "village",
+ "home",
+ "island",
+ "spider",
+ "spiders",
+ "end",
+ "park",
+ "gold",
+ "deep",
+ "mines",
+ "forge",
+ "crystals",
+ "hollows",
+ "ch",
+ "nucleus",
+ "barn",
+ "desert",
+ "castle",
+ "museum",
+ "da",
+ "crypt",
+ "crypts",
+ "nest",
+ "crimson",
+ "isle",
+ "nether",
+ "dragontail",
+ "scarleton",
+ "skull",
+ "tomb",
+ "smoldering",
+ "void",
+ "drag",
+ "jungle",
+ "howl",
+ "dungeon_hub",
+ "dungeons",
+ "dhub"
+] \ No newline at end of file