aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/at/hannibal2/skyhanni/features/nether
diff options
context:
space:
mode:
authorhannibal2 <24389977+hannibal002@users.noreply.github.com>2024-04-24 11:00:06 +0200
committerGitHub <noreply@github.com>2024-04-24 11:00:06 +0200
commit9f7ef2b05adaf526300018bf8fb4f42ca081c483 (patch)
tree6335a960b4cb606cf2ee6067682cc76cd4b375d6 /src/main/java/at/hannibal2/skyhanni/features/nether
parentd4c635abdc2db495659b0a64b3e035cd5f0aa222 (diff)
downloadskyhanni-9f7ef2b05adaf526300018bf8fb4f42ca081c483.tar.gz
skyhanni-9f7ef2b05adaf526300018bf8fb4f42ca081c483.tar.bz2
skyhanni-9f7ef2b05adaf526300018bf8fb4f42ca081c483.zip
Backend: HypixelCommands (#1525)
Co-authored-by: hannibal2 <24389977+hannibal00212@users.noreply.github.com>
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/features/nether')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/nether/PabloHelper.kt5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/features/nether/PabloHelper.kt b/src/main/java/at/hannibal2/skyhanni/features/nether/PabloHelper.kt
index a65d5d030..fb876278c 100644
--- a/src/main/java/at/hannibal2/skyhanni/features/nether/PabloHelper.kt
+++ b/src/main/java/at/hannibal2/skyhanni/features/nether/PabloHelper.kt
@@ -4,6 +4,7 @@ import at.hannibal2.skyhanni.SkyHanniMod
import at.hannibal2.skyhanni.data.IslandType
import at.hannibal2.skyhanni.events.LorenzChatEvent
import at.hannibal2.skyhanni.utils.ChatUtils
+import at.hannibal2.skyhanni.utils.HypixelCommands
import at.hannibal2.skyhanni.utils.InventoryUtils
import at.hannibal2.skyhanni.utils.ItemUtils.name
import at.hannibal2.skyhanni.utils.LorenzUtils.isInIsland
@@ -34,7 +35,9 @@ class PabloHelper {
if (InventoryUtils.countItemsInLowerInventory { it.name.contains(itemName) } > 0) return
- ChatUtils.clickableChat("Click here to grab an $itemName from sacks!", "gfs $itemName 1")
+ ChatUtils.clickableChat("Click here to grab an $itemName from sacks!", onClick = {
+ HypixelCommands.getFromSacks(itemName, 1)
+ })
lastSentMessage = SimpleTimeMark.now()
}