diff options
author | Soopyboo32 <49228220+Soopyboo32@users.noreply.github.com> | 2022-06-11 17:46:22 +0800 |
---|---|---|
committer | Soopyboo32 <49228220+Soopyboo32@users.noreply.github.com> | 2022-06-11 17:46:22 +0800 |
commit | 1a23a0071a1c220d0e70c99f9d71904f0635fad0 (patch) | |
tree | 8197710e3d9e75c2f271696ae96b6488ef120404 /features/improvements | |
parent | 4cfe8fd69d2d72df01dcc6804ab6b801e3890e73 (diff) | |
download | SoopyV2-1a23a0071a1c220d0e70c99f9d71904f0635fad0.tar.gz SoopyV2-1a23a0071a1c220d0e70c99f9d71904f0635fad0.tar.bz2 SoopyV2-1a23a0071a1c220d0e70c99f9d71904f0635fad0.zip |
+ small bugfixes
Diffstat (limited to 'features/improvements')
-rw-r--r-- | features/improvements/index.js | 39 | ||||
-rw-r--r-- | features/improvements/metadata.json | 8 |
2 files changed, 0 insertions, 47 deletions
diff --git a/features/improvements/index.js b/features/improvements/index.js deleted file mode 100644 index fa573af..0000000 --- a/features/improvements/index.js +++ /dev/null @@ -1,39 +0,0 @@ -/// <reference types="../../../CTAutocomplete" /> -/// <reference lib="es2015" /> -import Feature from "../../featureClass/class"; -import ToggleSetting from "../settings/settingThings/toggle"; - -class Improvements extends Feature { - constructor() { - super() - } - - onEnable(){ - this.initVariables() - - this.betterLineBreaks = new ToggleSetting("Better line breaks", "Changes all dashed lines (-------) in chat into solid lines", true, "better_line_breaks", this) - - this.registerChat("${color}-----------------------------------------------------&r", (color, event)=>{ - if(this.betterLineBreaks.getValue()){ - if(color.length > 6) return - cancel(event) - ChatLib.chat(color + "&m" + ChatLib.getChatBreak(" ") + "&r"); - } - }).trigger.triggerIfCanceled(false) - this.registerCommand("dung", (...args)=>{ - ChatLib.command("warp dungeon_hub") - }) - } - - initVariables(){ - this.betterLineBreaks = undefined - } - - onDisable(){ - this.initVariables() - } -} - -module.exports = { - class: new Improvements() -}
\ No newline at end of file diff --git a/features/improvements/metadata.json b/features/improvements/metadata.json deleted file mode 100644 index 4e147f6..0000000 --- a/features/improvements/metadata.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "name": "Improvements", - "description": "A bunch of random features that improve aspects of the game", - "isHidden": false, - "isTogglable": true, - "defaultEnabled": true, - "sortA": 1 -}
\ No newline at end of file |