aboutsummaryrefslogtreecommitdiff
path: root/features
diff options
context:
space:
mode:
authorSoopyboo32 <49228220+Soopyboo32@users.noreply.github.com>2022-05-01 20:33:52 +0800
committerSoopyboo32 <49228220+Soopyboo32@users.noreply.github.com>2022-05-01 20:33:52 +0800
commit8eb4cdc1b8dabd79fb19bbff98391bdb1e2fbe44 (patch)
tree7d132bb52524a4d6fb9c69e669bd888b401f5620 /features
parent6e1c06dec20c644158c2f0ee857dc7867bb71d2a (diff)
downloadSoopyV2-8eb4cdc1b8dabd79fb19bbff98391bdb1e2fbe44.tar.gz
SoopyV2-8eb4cdc1b8dabd79fb19bbff98391bdb1e2fbe44.tar.bz2
SoopyV2-8eb4cdc1b8dabd79fb19bbff98391bdb1e2fbe44.zip
make beacon dinkdonk only trigger if u actually have setting enabled
Diffstat (limited to 'features')
-rw-r--r--features/slayers/index.js12
1 files 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]];