diff options
author | Soopyboo32 <49228220+Soopyboo32@users.noreply.github.com> | 2022-08-31 07:24:13 +0800 |
---|---|---|
committer | Soopyboo32 <49228220+Soopyboo32@users.noreply.github.com> | 2022-08-31 07:24:13 +0800 |
commit | 453284c454714d97c8fba00414ad2acd2ecc862d (patch) | |
tree | e4f9a3eed3460eebb8c1ab9e13ef2a6e45f676d3 /features/events | |
parent | 21ae35d5731726532eb8a2855e43944a485eea9a (diff) | |
download | SoopyV2-453284c454714d97c8fba00414ad2acd2ecc862d.tar.gz SoopyV2-453284c454714d97c8fba00414ad2acd2ecc862d.tar.bz2 SoopyV2-453284c454714d97c8fba00414ad2acd2ecc862d.zip |
+ hide inquis waypoints for NON party members setting
Diffstat (limited to 'features/events')
-rw-r--r-- | features/events/index.js | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/features/events/index.js b/features/events/index.js index 7ede6b0..5e20036 100644 --- a/features/events/index.js +++ b/features/events/index.js @@ -62,6 +62,7 @@ class Events extends Feature { this.otherInquisWaypoints = new ToggleSetting("Show other users inquis locations", "If disabled others wont be able to see urs", true, "inquis_location_other", this).requires(this.loadFromParticles) this.otherInquisPing = new ToggleSetting("Show cool title when someone's inquis spawned", "May be usefull for loot share", true, "inquis_ping_other", this).requires(this.loadFromParticles) this.limitPMemb = new ToggleSetting("Only send inquis ping to party members", "If not in a party it works as default", true, "inquis_ping_party", this).requires(this.otherInquisPing) + this.limitPMembRecieve = new ToggleSetting("Only RECIEVE inquis ping from party members", "To prevent trolling for streamers", false, "recieve_inquis_ping_party", this).requires(this.otherInquisPing) this.shinyBlocks = [] this.MythMobsHPGuiElement = new ToggleSetting("Render Mythological Mobs hp on your screen", "This will help you to know their HP.", true, "myth_mobs_hp", this).contributor("EmeraldMerchant"); @@ -175,6 +176,10 @@ class Events extends Feature { delete this.slayerLocationDataH[user] return } + + if (this.limitPMembRecieve.getValue()) { + if (!this.FeatureManager.features["dataLoader"].class.partyMembers.has(user)) return + } this.slayerLocationDataH[user] = [loc, Date.now()] if (this.otherInquisPing.getValue()) { Client.showTitle("&r&6&l[&b&l&kO&6&l] MINOS INQUISITOR [&b&l&kO&6&l]", `${user}'s Inquisitor`, 0, 50, 10); |