summaryrefslogtreecommitdiff
path: root/src/main/java/at/hannibal2/skyhanni/features/dungeon
diff options
context:
space:
mode:
authorThunderblade73 <85900443+Thunderblade73@users.noreply.github.com>2024-06-07 13:36:40 +0200
committerGitHub <noreply@github.com>2024-06-07 13:36:40 +0200
commit5641066f42fef8f48eceb4cb39680a03f0b3a4db (patch)
treea5753e6324c32aefd00a166ddec67b62ce043471 /src/main/java/at/hannibal2/skyhanni/features/dungeon
parent334ef4c0c49d48e649209676a69f0dacf81b112f (diff)
downloadskyhanni-5641066f42fef8f48eceb4cb39680a03f0b3a4db.tar.gz
skyhanni-5641066f42fef8f48eceb4cb39680a03f0b3a4db.tar.bz2
skyhanni-5641066f42fef8f48eceb4cb39680a03f0b3a4db.zip
Backend/Fix : "Removed" HypixelCommands.getFromSack (#1999)
Co-authored-by: Cal <cwolfson58@gmail.com>
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/features/dungeon')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/dungeon/DungeonArchitectFeatures.kt15
1 files changed, 8 insertions, 7 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/features/dungeon/DungeonArchitectFeatures.kt b/src/main/java/at/hannibal2/skyhanni/features/dungeon/DungeonArchitectFeatures.kt
index d495972b0..662c36604 100644
--- a/src/main/java/at/hannibal2/skyhanni/features/dungeon/DungeonArchitectFeatures.kt
+++ b/src/main/java/at/hannibal2/skyhanni/features/dungeon/DungeonArchitectFeatures.kt
@@ -1,13 +1,13 @@
package at.hannibal2.skyhanni.features.dungeon
import at.hannibal2.skyhanni.SkyHanniMod
+import at.hannibal2.skyhanni.api.GetFromSackAPI
import at.hannibal2.skyhanni.data.SackAPI.getAmountInSacks
import at.hannibal2.skyhanni.events.LorenzChatEvent
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.NEUInternalName.Companion.asInternalName
+import at.hannibal2.skyhanni.utils.PrimitiveItemStack.Companion.makePrimitiveStack
import at.hannibal2.skyhanni.utils.RegexUtils.matchMatcher
import at.hannibal2.skyhanni.utils.repopatterns.RepoPattern
import net.minecraftforge.fml.common.eventhandler.SubscribeEvent
@@ -42,16 +42,17 @@ object DungeonArchitectFeatures {
}
}
+ private val architectsFirstDraft = "ARCHITECT_FIRST_DRAFT".asInternalName().makePrimitiveStack()
+
private fun generateMessage(name: String, event: LorenzChatEvent) {
val architectItemAmount = architectsFirstDraftItem.getAmountInSacks()
if (architectItemAmount <= 0) return
- ChatUtils.clickableChat(
- "§c§lPUZZLE FAILED! §r§b$name §r§efailed a puzzle. \n" +
- "§eClick here to get §5Architect's First Draft §7(§e${architectItemAmount}x left§7)",
- { HypixelCommands.getFromSacks("ARCHITECT_FIRST_DRAFT", 1) },
- prefix = false
+ GetFromSackAPI.getFromChatMessageSackItems(
+ architectsFirstDraft, "§c§lPUZZLE FAILED! §r§b$name §r§efailed a puzzle. \n" +
+ "§eClick here to get §5Architect's First Draft §7(§e${architectItemAmount}x left§7)"
)
+
LorenzUtils.sendTitle("§c§lPUZZLE FAILED!", 3.seconds)
event.blockedReason = "puzzle_fail"
}