summaryrefslogtreecommitdiff
path: root/src/main/java/at/hannibal2/skyhanni/features/event
diff options
context:
space:
mode:
authorBrady <thatgravyboat@gmail.com>2024-05-08 08:30:59 -0230
committerGitHub <noreply@github.com>2024-05-08 13:00:59 +0200
commitf9ce2fa19a1178fd9f2e2728d09ac5acd299d69f (patch)
treec344555d1a09f27b74347413f828df71fe95767b /src/main/java/at/hannibal2/skyhanni/features/event
parent49d918a5d01f102796c2ef52a26e69a41892eb8f (diff)
downloadskyhanni-f9ce2fa19a1178fd9f2e2728d09ac5acd299d69f.tar.gz
skyhanni-f9ce2fa19a1178fd9f2e2728d09ac5acd299d69f.tar.bz2
skyhanni-f9ce2fa19a1178fd9f2e2728d09ac5acd299d69f.zip
Backend: Text API (#1718)
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.kt12
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/event/hoppity/HoppityEggsManager.kt3
2 files changed, 9 insertions, 6 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 25fba4ceb..ef1a58c55 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
@@ -170,11 +170,13 @@ object InquisitorWaypointShare {
sendInquisitor()
} else {
val keyName = KeyboardManager.getKeyName(config.keyBindShare)
- val message =
- "§l§bYou found a Inquisitor! Press §l§chere §l§bor §c$keyName to share the location!"
- ChatUtils.clickableChat(message, onClick = {
- sendInquisitor()
- })
+ val message = "§l§bYou found a Inquisitor! Press §l§chere §l§bor §c$keyName to share the location!"
+ ChatUtils.clickableChat(
+ message, onClick = {
+ sendInquisitor()
+ },
+ oneTimeClick = true
+ )
}
}
diff --git a/src/main/java/at/hannibal2/skyhanni/features/event/hoppity/HoppityEggsManager.kt b/src/main/java/at/hannibal2/skyhanni/features/event/hoppity/HoppityEggsManager.kt
index 608f241cc..c382e227e 100644
--- a/src/main/java/at/hannibal2/skyhanni/features/event/hoppity/HoppityEggsManager.kt
+++ b/src/main/java/at/hannibal2/skyhanni/features/event/hoppity/HoppityEggsManager.kt
@@ -135,7 +135,8 @@ object HoppityEggsManager {
ChatUtils.clickableChat(
"Click here to share the location of this chocolate egg with the server!",
onClick = { HoppityEggsShared.shareNearbyEggLocation(currentLocation, meal, note) },
- expireAt = 30.seconds.fromNow()
+ expireAt = 30.seconds.fromNow(),
+ oneTimeClick = true
)
}
}