From 19522ece48637364f3bc438b4338ad2ce163e3e5 Mon Sep 17 00:00:00 2001 From: Soopyboo32 <49228220+Soopyboo32@users.noreply.github.com> Date: Mon, 29 Aug 2022 22:08:38 +0800 Subject: add waypoint ignore add to inquis waypoints --- features/events/index.js | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'features/events/index.js') 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() } } -- cgit