aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/at/hannibal2/skyhanni/features/event
diff options
context:
space:
mode:
authorCalMWolfs <94038482+CalMWolfs@users.noreply.github.com>2024-06-21 07:39:24 +1000
committerGitHub <noreply@github.com>2024-06-20 23:39:24 +0200
commitd534f73b63578d384c7a69462ca18cf0883926f5 (patch)
tree80e21e1f0ec41c5dee47712c5d2144281afeb0e7 /src/main/java/at/hannibal2/skyhanni/features/event
parent6410dcf999a08d4b6625fdc25f2db148c9df8338 (diff)
downloadskyhanni-d534f73b63578d384c7a69462ca18cf0883926f5.tar.gz
skyhanni-d534f73b63578d384c7a69462ca18cf0883926f5.tar.bz2
skyhanni-d534f73b63578d384c7a69462ca18cf0883926f5.zip
Backend: Remove deprecated function ChatUtils.error (#2021)
Co-authored-by: hannibal2 <24389977+hannibal00212@users.noreply.github.com>
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/features/event')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/event/diana/InquisitorWaypointShare.kt10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/features/event/diana/InquisitorWaypointShare.kt b/src/main/java/at/hannibal2/skyhanni/features/event/diana/InquisitorWaypointShare.kt
index d9539fe15..e9e4ebd5a 100644
--- a/src/main/java/at/hannibal2/skyhanni/features/event/diana/InquisitorWaypointShare.kt
+++ b/src/main/java/at/hannibal2/skyhanni/features/event/diana/InquisitorWaypointShare.kt
@@ -11,6 +11,7 @@ import at.hannibal2.skyhanni.events.SecondPassedEvent
import at.hannibal2.skyhanni.events.diana.InquisitorFoundEvent
import at.hannibal2.skyhanni.events.minecraft.packet.PacketReceivedEvent
import at.hannibal2.skyhanni.skyhannimodule.SkyHanniModule
+import at.hannibal2.skyhanni.test.command.ErrorManager
import at.hannibal2.skyhanni.utils.ChatUtils
import at.hannibal2.skyhanni.utils.CollectionUtils.editCopy
import at.hannibal2.skyhanni.utils.EntityUtils
@@ -49,7 +50,7 @@ object InquisitorWaypointShare {
"(?<party>§9Party §8> )?(?<playerName>.+)§f: §rx: (?<x>[^ ,]+),? y: (?<y>[^ ,]+),? z: (?<z>[^ ,]+)"
)
- //Support for https://www.chattriggers.com/modules/v/inquisitorchecker
+ // Support for https://www.chattriggers.com/modules/v/inquisitorchecker
/**
* REGEX-TEST: §9Party §8> UserName§f: §rA MINOS INQUISITOR has spawned near [Foraging Island ] at Coords 1 2 3
*/
@@ -108,7 +109,7 @@ object InquisitorWaypointShare {
inquisitorsNearby = emptyList()
}
- val inquisitorTime = mutableListOf<SimpleTimeMark>()
+ private val inquisitorTime = mutableListOf<SimpleTimeMark>()
@HandleEvent
fun onInquisitorFound(event: InquisitorFoundEvent) {
@@ -194,14 +195,13 @@ object InquisitorWaypointShare {
HypixelCommands.partyChat("Inquisitor dead!")
}
- fun sendInquisitor() {
+ private fun sendInquisitor() {
if (!isEnabled()) return
if (lastShareTime.passedSince() < 5.seconds) return
lastShareTime = SimpleTimeMark.now()
if (inquisitor == -1) {
- ChatUtils.error("No Inquisitor Found!")
- return
+ ErrorManager.skyHanniError("No Inquisitor Found!")
}
val inquisitor = EntityUtils.getEntityByID(inquisitor)