From f9085b19e0bc3d4bc28fc13a5603a31a91ee7c20 Mon Sep 17 00:00:00 2001 From: Soopyboo32 <49228220+Soopyboo32@users.noreply.github.com> Date: Wed, 17 Nov 2021 17:07:49 +0800 Subject: - unload all modules on game unload event - make all chatlib chats use soopyv2 prefix --- features/betterGuis/index.js | 3 +-- features/betterGuis/museumGui.js | 2 +- features/dungeonSolvers/index.js | 2 +- features/fragBot/index.js | 4 ++-- features/globalSettings/index.js | 2 +- 5 files changed, 6 insertions(+), 7 deletions(-) (limited to 'features') diff --git a/features/betterGuis/index.js b/features/betterGuis/index.js index 2f22b04..7475d4a 100644 --- a/features/betterGuis/index.js +++ b/features/betterGuis/index.js @@ -1,9 +1,8 @@ /// /// import Feature from "../../featureClass/class"; -import logger from "../../logger"; import ToggleSetting from "../settings/settingThings/toggle"; -// import MuseumGui from "./museumGui"; +// import MuseumGui from "./museumGui.js"; class BetterGuis extends Feature { constructor() { diff --git a/features/betterGuis/museumGui.js b/features/betterGuis/museumGui.js index c3c47d0..23d9e94 100644 --- a/features/betterGuis/museumGui.js +++ b/features/betterGuis/museumGui.js @@ -7,7 +7,7 @@ import SoopyBoxElement from "../../../guimanager/GuiElement/SoopyBoxElement" import SoopyGuiElement from "../../../guimanager/GuiElement/SoopyGuiElement" import SoopyTextElement from "../../../guimanager/GuiElement/SoopyTextElement" import renderLibs from "../../../guimanager/renderLibs" -import utils from "../../utils/utils" +import * as utils from "../../utils/utils" class MuseumGui { constructor(){ diff --git a/features/dungeonSolvers/index.js b/features/dungeonSolvers/index.js index 5ca1ed5..954c4b8 100644 --- a/features/dungeonSolvers/index.js +++ b/features/dungeonSolvers/index.js @@ -97,7 +97,7 @@ class DungeonSolvers extends Feature { } if (this.lividData.sayLividColors2.length === 9) { if(this.lividFindChat.getValue()){ - ChatLib.chat("Correct livid is: " + this.lividData.lividColor[lividName] + lividName) + ChatLib.chat(this.FeatureManager.messagePrefix + "Correct livid is: " + this.lividData.lividColor[lividName] + lividName) } this.lividData.correctLividColor = lividName } diff --git a/features/fragBot/index.js b/features/fragBot/index.js index 67bb9a3..e3a571f 100644 --- a/features/fragBot/index.js +++ b/features/fragBot/index.js @@ -61,10 +61,10 @@ class FragBot extends Feature { fragbotCommand(...args){ if(this.hostingFragBot){ this.hostingFragBot = false - ChatLib.chat("&aFragbot has been disabled") + ChatLib.chat(this.FeatureManager.messagePrefix + "Fragbot has been disabled") }else{ this.hostingFragBot = true - ChatLib.chat("&aNow acting as a fragbot, run /fragbot again to disable") + ChatLib.chat(this.FeatureManager.messagePrefix + "Now acting as a fragbot, run /fragbot again to disable") } } diff --git a/features/globalSettings/index.js b/features/globalSettings/index.js index dd3d922..c044a4e 100644 --- a/features/globalSettings/index.js +++ b/features/globalSettings/index.js @@ -200,7 +200,7 @@ class Hud extends Feature { } newKey(key, event){ - ChatLib.chat("&c[SOOPY V2] Copied api key!") + ChatLib.chat(this.FeatureManager.messagePrefix + "Copied api key!") this.apiKeySetting.setValue(key) } -- cgit