From 8eb4cdc1b8dabd79fb19bbff98391bdb1e2fbe44 Mon Sep 17 00:00:00 2001 From: Soopyboo32 <49228220+Soopyboo32@users.noreply.github.com> Date: Sun, 1 May 2022 20:33:52 +0800 Subject: make beacon dinkdonk only trigger if u actually have setting enabled --- features/slayers/index.js | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/features/slayers/index.js b/features/slayers/index.js index e5f7219..929d7dc 100644 --- a/features/slayers/index.js +++ b/features/slayers/index.js @@ -416,8 +416,10 @@ class Slayers extends Feature { if (World.getBlockAt(0, 0, 0).getID) { if (World.getBlockAt(location[0], location[1], location[2]).getID() === 138) { - Client.showTitle("&cGO TO BEACON!", "&c" + (Math.max(0, 5000 - (Date.now() - e[0])) / 1000).toFixed(1) + "s", 0, 20, 10); - World.playSound("note.pling", 1, 1); + if (this.emanBeaconDinkDonk.getValue()) { + Client.showTitle("&cGO TO BEACON!", "&c" + (Math.max(0, 5000 - (Date.now() - e[0])) / 1000).toFixed(1) + "s", 0, 20, 10); + World.playSound("note.pling", 1, 1); + } } else { delete this.beaconPoints[e[1]]; delete this.beaconLocations[e[1]]; @@ -426,8 +428,10 @@ class Slayers extends Feature { } else { //CT 2.0 support if (World.getBlockAt(location[0], location[1], location[2]).getType().getID() === 138) { - Client.showTitle("&cGO TO BEACON!", "&c" + (Math.max(0, 5000 - (Date.now() - e[0])) / 1000).toFixed(1) + "s", 0, 20, 10); - World.playSound("note.pling", 1, 1); + if (this.emanBeaconDinkDonk.getValue()) { + Client.showTitle("&cGO TO BEACON!", "&c" + (Math.max(0, 5000 - (Date.now() - e[0])) / 1000).toFixed(1) + "s", 0, 20, 10); + World.playSound("note.pling", 1, 1); + } } else { delete this.beaconPoints[e[1]]; delete this.beaconLocations[e[1]]; -- cgit