aboutsummaryrefslogtreecommitdiff
path: root/features
diff options
context:
space:
mode:
Diffstat (limited to 'features')
-rw-r--r--features/events/index.js8
-rw-r--r--features/globalSettings/index.js4
2 files changed, 10 insertions, 2 deletions
diff --git a/features/events/index.js b/features/events/index.js
index 2b189ba..7ede6b0 100644
--- a/features/events/index.js
+++ b/features/events/index.js
@@ -135,6 +135,12 @@ class Events extends Feature {
delete this.slayerLocationDataH[player]
})
+ this.registerCommand("cleardianawaypoints", () => {
+ this.burrialData.points = []
+ this.burrialData.locations = []
+ this.burrialData.historicalLocations = []
+ ChatLib.chat(this.FeatureManager.messagePrefix + "Cleared all diana waypoints!")
+ })
}
step_1fps() {
@@ -215,7 +221,7 @@ class Events extends Feature {
if (this.otherInquisWaypoints.getValue()) {
Object.keys(this.slayerLocationDataH).forEach(key => {
- drawCoolWaypoint(this.slayerLocationDataH[key][0][0], this.slayerLocationDataH[key][0][1], this.slayerLocationDataH[key][0][2], 255, 0, 0, { name: "§c" + key + "'s inquis" })
+ drawCoolWaypoint(this.slayerLocationDataH[key][0][0] || 0, this.slayerLocationDataH[key][0][1] || 0, this.slayerLocationDataH[key][0][2] || 0, 255, 0, 0, { name: "§c" + (key || "ERROR") + "'s inquis" })
})
}
}
diff --git a/features/globalSettings/index.js b/features/globalSettings/index.js
index 5465629..9e58d6f 100644
--- a/features/globalSettings/index.js
+++ b/features/globalSettings/index.js
@@ -230,7 +230,7 @@ class GlobalSettings extends Feature {
delay(time * 1000, () => {
packetReceived.unregister()
tick.unregister()
- ChatLib.chat(this.FeatureManager.messagePrefix + "Tps: " + (ticks / time).toFixed(1))
+ ChatLib.chat(this.FeatureManager.messagePrefix + "Tps: " + Math.min(20, ticks / time).toFixed(1))
})
})
@@ -353,6 +353,8 @@ class GlobalSettings extends Feature {
return ret
})) {
+ Client.showTitle("SNIPE THING", "CHECK CHAT", 20, 60, 20)
+
new TextComponent(this.FeatureManager.messagePrefix + "Bin found " + numberWithCommas(a.starting_bid) + " " + a.item_name).setClick("run_command", "/viewauction " + a.uuid).chat()
}
})