From c92f4e93147874e6d3f28799bbe3196e55de4b3a Mon Sep 17 00:00:00 2001 From: Soopyboo32 <49228220+Soopyboo32@users.noreply.github.com> Date: Sun, 8 May 2022 09:43:57 +0800 Subject: + fix inquis waypoints + add waypoints on /patcher sendcoords --- features/events/index.js | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'features/events') diff --git a/features/events/index.js b/features/events/index.js index eb29128..c315955 100644 --- a/features/events/index.js +++ b/features/events/index.js @@ -1,6 +1,7 @@ /// /// import Feature from "../../featureClass/class"; +import socketConnection from "../../socketConnection"; import { drawBoxAtBlock, drawBoxAtBlockNotVisThruWalls, drawCoolWaypoint, drawLine } from "../../utils/renderUtils"; import { calculateDistanceQuick } from "../../utils/utils"; import SettingBase from "../settings/settingThings/settingBase"; @@ -62,11 +63,16 @@ class Events extends Feature { this.registerChat("&r&eYou finished the Griffin burrow chain! &r&7(4/4)&r", this.burrialClicked) this.inquisWaypointSpawned = false this.registerChat("${a}You dug out a ${thing}!", (a, thing) => { + console.log(a, thing) if (a.includes(":") || a.length === 0 || a.length > 50) return if (!thing.toLowerCase().includes("inquis")) return this.inquisWaypointSpawned = true socketConnection.sendInquisData({ loc: [Math.round(Player.getX()), Math.round(Player.getY()), Math.round(Player.getZ())] }); }) + this.registerCommand("fakeinquis", () => { + this.inquisWaypointSpawned = true + socketConnection.sendInquisData({ loc: [Math.round(Player.getX()), Math.round(Player.getY()), Math.round(Player.getZ())] }); + }) } inquisData(loc, user) { -- cgit