diff options
Diffstat (limited to 'features/globalSettings/index.js')
-rw-r--r-- | features/globalSettings/index.js | 9 |
1 files changed, 9 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] |