diff options
author | Soopyboo32 <49228220+Soopyboo32@users.noreply.github.com> | 2022-08-29 22:08:38 +0800 |
---|---|---|
committer | Soopyboo32 <49228220+Soopyboo32@users.noreply.github.com> | 2022-08-29 22:08:38 +0800 |
commit | 19522ece48637364f3bc438b4338ad2ce163e3e5 (patch) | |
tree | 73e0d2f62c5afea793f7a1450af9df01034cf914 /features/events/index.js | |
parent | efab3e9a26260e07b0eb7f9c9997fefe175fc456 (diff) | |
download | SoopyV2-19522ece48637364f3bc438b4338ad2ce163e3e5.tar.gz SoopyV2-19522ece48637364f3bc438b4338ad2ce163e3e5.tar.bz2 SoopyV2-19522ece48637364f3bc438b4338ad2ce163e3e5.zip |
add waypoint ignore add to inquis waypoints
Diffstat (limited to 'features/events/index.js')
-rw-r--r-- | features/events/index.js | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/features/events/index.js b/features/events/index.js index 4044429..c0fe28f 100644 --- a/features/events/index.js +++ b/features/events/index.js @@ -80,6 +80,8 @@ class Events extends Feature { this.dingIndex = 0 this.dingSlope = [] + this.ignorePlayers = new Set() + new SettingBase("There is also a hotkey to warp near", "see minecraft controls menu", true, "warp_info_hotkey", this) this.warpBindDefault = new TextSetting("Default warp keybind", "Eg KEY_F", "CHAR_NONE", "inquis_keybind_default", this, "", false) @@ -125,6 +127,14 @@ class Events extends Feature { this.registerStep(true, 1, this.step_1fps) this.registerStep(true, 10, this.step_10fps) + + + this.registerCommand("inqwaypointignoreadd", (player) => { + this.ignorePlayers.add(player) + ChatLib.chat(this.FeatureManager.messagePrefix + "Added " + player + " to inquis waypoint ignore list, this will be cleared next game start!") + + delete this.slayerLocationDataH[player] + }) } step_1fps() { @@ -161,7 +171,7 @@ class Events extends Feature { 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); - ChatLib.chat(this.FeatureManager.messagePrefix + `${user} spawned an inquis &7(waypoint added)`) + new TextComponent(this.FeatureManager.messagePrefix + `${user} spawned an inquis &7(waypoint added), &cCLICK HERE &7to ignore waypoints from them.`).setClick("run_command", "/inqwaypointignoreadd " + user).chat() } } |