aboutsummaryrefslogtreecommitdiff
path: root/features
diff options
context:
space:
mode:
authorSoopyboo32 <49228220+Soopyboo32@users.noreply.github.com>2021-11-17 17:07:49 +0800
committerSoopyboo32 <49228220+Soopyboo32@users.noreply.github.com>2021-11-17 17:07:49 +0800
commitf9085b19e0bc3d4bc28fc13a5603a31a91ee7c20 (patch)
treeddc15e284c7e800bef0321ac5c7f0a028f56409b /features
parent84c0f2e026ebfa9017dacc1f8bfde9647315392a (diff)
downloadSoopyV2-f9085b19e0bc3d4bc28fc13a5603a31a91ee7c20.tar.gz
SoopyV2-f9085b19e0bc3d4bc28fc13a5603a31a91ee7c20.tar.bz2
SoopyV2-f9085b19e0bc3d4bc28fc13a5603a31a91ee7c20.zip
- unload all modules on game unload event
- make all chatlib chats use soopyv2 prefix
Diffstat (limited to 'features')
-rw-r--r--features/betterGuis/index.js3
-rw-r--r--features/betterGuis/museumGui.js2
-rw-r--r--features/dungeonSolvers/index.js2
-rw-r--r--features/fragBot/index.js4
-rw-r--r--features/globalSettings/index.js2
5 files changed, 6 insertions, 7 deletions
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 @@
/// <reference types="../../../CTAutocomplete" />
/// <reference lib="es2015" />
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)
}