aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/at/hannibal2/skyhanni/features
diff options
context:
space:
mode:
authorhannibal2 <24389977+hannibal002@users.noreply.github.com>2024-08-13 18:19:24 +0200
committerGitHub <noreply@github.com>2024-08-13 18:19:24 +0200
commit4b2935b538b4a7b7816ac581fa184340557e66e7 (patch)
tree997affa07ee7220eb6df66933b0c6d1d0250aff7 /src/main/java/at/hannibal2/skyhanni/features
parent9f4e281457ea73a9363cdf781351ed26be6ecbfc (diff)
downloadskyhanni-4b2935b538b4a7b7816ac581fa184340557e66e7.tar.gz
skyhanni-4b2935b538b4a7b7816ac581fa184340557e66e7.tar.bz2
skyhanni-4b2935b538b4a7b7816ac581fa184340557e66e7.zip
Improvement: Click CF block message to open pets (#2333)
Co-authored-by: hannibal2 <24389977+hannibal00212@users.noreply.github.com>
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/features')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/inventory/chocolatefactory/ChocolateFactoryBlockOpen.kt10
1 files changed, 7 insertions, 3 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/features/inventory/chocolatefactory/ChocolateFactoryBlockOpen.kt b/src/main/java/at/hannibal2/skyhanni/features/inventory/chocolatefactory/ChocolateFactoryBlockOpen.kt
index 625fd1d6b..c8a4ccd5b 100644
--- a/src/main/java/at/hannibal2/skyhanni/features/inventory/chocolatefactory/ChocolateFactoryBlockOpen.kt
+++ b/src/main/java/at/hannibal2/skyhanni/features/inventory/chocolatefactory/ChocolateFactoryBlockOpen.kt
@@ -5,6 +5,7 @@ import at.hannibal2.skyhanni.events.MessageSendToServerEvent
import at.hannibal2.skyhanni.features.event.hoppity.MythicRabbitPetWarning
import at.hannibal2.skyhanni.skyhannimodule.SkyHanniModule
import at.hannibal2.skyhanni.utils.ChatUtils
+import at.hannibal2.skyhanni.utils.HypixelCommands
import at.hannibal2.skyhanni.utils.LorenzUtils
import at.hannibal2.skyhanni.utils.RegexUtils.matches
import at.hannibal2.skyhanni.utils.SimpleTimeMark
@@ -39,10 +40,13 @@ object ChocolateFactoryBlockOpen {
commandSentTimer = SimpleTimeMark.now()
event.cancel()
- ChatUtils.chatAndOpenConfig(
- "Blocked opening the Chocolate Factory without a §dMythic Rabbit Pet §eequipped. Click here to disable!",
+ ChatUtils.clickToActionOrDisable(
+ "§cBlocked opening the Chocolate Factory without a §dMythic Rabbit Pet §cequipped!",
config::mythicRabbitRequirement,
- )
+ "open pets menu",
+ ) {
+ HypixelCommands.pet()
+ }
}
private fun isEnabled() = LorenzUtils.inSkyBlock && config.mythicRabbitRequirement