diff options
author | Soopyboo32 <49228220+Soopyboo32@users.noreply.github.com> | 2022-10-06 13:49:36 +0800 |
---|---|---|
committer | Soopyboo32 <49228220+Soopyboo32@users.noreply.github.com> | 2022-10-06 13:49:36 +0800 |
commit | 26996a65c93de407e4a12403f967b722a6dbf710 (patch) | |
tree | d7c2a88caded77af66f380deaef8473b41523323 | |
parent | f764220a8e375286acaf028b78a09bccf23b9122 (diff) | |
download | SoopyV2-26996a65c93de407e4a12403f967b722a6dbf710.tar.gz SoopyV2-26996a65c93de407e4a12403f967b722a6dbf710.tar.bz2 SoopyV2-26996a65c93de407e4a12403f967b722a6dbf710.zip |
+ command to clear gemstone money rate
-rw-r--r-- | src/features/dungeonSolvers/index.js | 1 | ||||
-rw-r--r-- | src/features/mining/index.js | 7 |
2 files changed, 8 insertions, 0 deletions
diff --git a/src/features/dungeonSolvers/index.js b/src/features/dungeonSolvers/index.js index 4472d95..96b303c 100644 --- a/src/features/dungeonSolvers/index.js +++ b/src/features/dungeonSolvers/index.js @@ -453,6 +453,7 @@ class DungeonSolvers extends Feature { } getBonzoMaskCooldown() { + if (!Player.getInventory()) return [...Player.getInventory().getItems()].forEach(i => { if (!i) return let itemName = i.getName() diff --git a/src/features/mining/index.js b/src/features/mining/index.js index 8060d19..96552d5 100644 --- a/src/features/mining/index.js +++ b/src/features/mining/index.js @@ -156,6 +156,13 @@ class Mining extends Feature { this.nextChEventElement.setText("&6Event&7> &f" + socketConnection.chEvent.join(" &7->&f ")) }) + this.registerCommand("soopyclearminingprofit", () => { + money = 0 + startingTime = -1 + lastMined = 0 + this.gemstoneMoneyHudElement.setText("") + ChatLib.chat(this.FeatureManager.messagePrefix + "Cleared gemstone profit data!") + }) let lastWorldChange = 0 |