From 26996a65c93de407e4a12403f967b722a6dbf710 Mon Sep 17 00:00:00 2001 From: Soopyboo32 <49228220+Soopyboo32@users.noreply.github.com> Date: Thu, 6 Oct 2022 13:49:36 +0800 Subject: + command to clear gemstone money rate --- src/features/dungeonSolvers/index.js | 1 + src/features/mining/index.js | 7 +++++++ 2 files changed, 8 insertions(+) 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 -- cgit