diff options
| author | Obsidian <108832807+Obsidianninja11@users.noreply.github.com> | 2024-05-15 23:55:23 -0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-05-16 09:55:23 +0200 |
| commit | 388a656c95c745c8cced86931e9ab30e10e3bb9e (patch) | |
| tree | 9dab00b107dbbcf7f52f02e6ffac393cb60b209e /src/main/java/at/hannibal2/skyhanni/features/event | |
| parent | 5d4c57e8afa664d25be6fdaaf1e82a6e7b195ecd (diff) | |
| download | skyhanni-388a656c95c745c8cced86931e9ab30e10e3bb9e.tar.gz skyhanni-388a656c95c745c8cced86931e9ab30e10e3bb9e.tar.bz2 skyhanni-388a656c95c745c8cced86931e9ab30e10e3bb9e.zip | |
Improvement: Better Hoppity Egg Warning (#1802)
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/features/event')
| -rw-r--r-- | src/main/java/at/hannibal2/skyhanni/features/event/hoppity/HoppityEggsManager.kt | 10 |
1 files changed, 9 insertions, 1 deletions
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 2b030f0c9..366f8d9dc 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 @@ -11,6 +11,7 @@ import at.hannibal2.skyhanni.features.inventory.chocolatefactory.ChocolateFactor import at.hannibal2.skyhanni.test.command.ErrorManager import at.hannibal2.skyhanni.utils.ChatUtils import at.hannibal2.skyhanni.utils.DelayedRun +import at.hannibal2.skyhanni.utils.HypixelCommands import at.hannibal2.skyhanni.utils.LocationUtils import at.hannibal2.skyhanni.utils.LorenzUtils import at.hannibal2.skyhanni.utils.RenderUtils.renderStrings @@ -189,7 +190,14 @@ object HoppityEggsManager { lastWarnTime = now() val amount = HoppityEggType.entries.size - ChatUtils.chat("All $amount Hoppity Eggs are ready to be found.!") + val message = "All $amount Hoppity Eggs are ready to be found!" + if (config.warpUnclaimedEggs) { + ChatUtils.clickableChat( + message, + onClick = { HypixelCommands.warp(config.warpDestination) }, + "§eClick to /warp ${config.warpDestination}!" + ) + } else ChatUtils.chat(message) LorenzUtils.sendTitle("§e$amount Hoppity Eggs!", 5.seconds) SoundUtils.repeatSound(100, 10, SoundUtils.plingSound) } |
