aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--featureClass/featureManager.js2
-rw-r--r--features/globalSettings/index.js9
-rw-r--r--features/globalSettings/warps.json41
3 files changed, 51 insertions, 1 deletions
diff --git a/featureClass/featureManager.js b/featureClass/featureManager.js
index 4aae70f..ecf6575 100644
--- a/featureClass/featureManager.js
+++ b/featureClass/featureManager.js
@@ -547,7 +547,7 @@ class FeatureManager {
event.trigger.setName(commandName, true)
- if (completions) event.trigger.setName(commandName, true).setTabCompletions(completions)
+ if (completions) event.trigger.setTabCompletions(completions).setName(commandName, true)
return event
}
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