diff options
author | Empa <42304516+ItsEmpa@users.noreply.github.com> | 2024-05-26 14:57:16 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-05-26 14:57:16 +0200 |
commit | 29657e24412baa7be9a1681593593368f92de26f (patch) | |
tree | 70d669a42b88fdc5df0fbad6313bcffdd1b9b5c0 /src/main/java/at/hannibal2/skyhanni/utils/HypixelCommands.kt | |
parent | 0ddd9edc94bc0c872109acd0b845163b073ceb6a (diff) | |
download | skyhanni-29657e24412baa7be9a1681593593368f92de26f.tar.gz skyhanni-29657e24412baa7be9a1681593593368f92de26f.tar.bz2 skyhanni-29657e24412baa7be9a1681593593368f92de26f.zip |
Backend: Use HypixelCommands (#1769)
Co-authored-by: CalMWolfs <94038482+CalMWolfs@users.noreply.github.com>
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/utils/HypixelCommands.kt')
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/utils/HypixelCommands.kt | 72 |
1 files changed, 66 insertions, 6 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/utils/HypixelCommands.kt b/src/main/java/at/hannibal2/skyhanni/utils/HypixelCommands.kt index 10ef1f737..a515262a8 100644 --- a/src/main/java/at/hannibal2/skyhanni/utils/HypixelCommands.kt +++ b/src/main/java/at/hannibal2/skyhanni/utils/HypixelCommands.kt @@ -6,14 +6,46 @@ object HypixelCommands { send("bz $searchTerm") } + fun playtime() { + send("playtime") + } + + fun skills() { + send("skills") + } + + fun viewRecipe(itemName: String) { + send("viewrecipe $itemName") + } + + fun recipe(itemName: String) { + send("recipe $itemName") + } + fun warp(warp: String) { send("warp $warp") } + fun island() { + send("is") + } + + fun gardenDesk() { + send("desk") + } + fun teleportToPlot(plotName: String) { send("tptoplot $plotName") } + fun gardenLevels() { + send("gardenlevels") + } + + fun setHome() { + send("sethome") + } + fun getFromSacks(itemName: String, amount: Int) { send("gfs $itemName $amount") } @@ -30,10 +62,6 @@ object HypixelCommands { send("openbaker") } - fun gardenLevels() { - send("gardenlevels") - } - fun calendar() { send("calendar") } @@ -46,6 +74,14 @@ object HypixelCommands { send("togglemusic") } + fun bingo() { + send("bingo") + } + + fun wiki(text: String) { + send("wiki $text") + } + fun partyWarp() { send("party warp") } @@ -54,23 +90,47 @@ object HypixelCommands { send("party transfer $player") } - fun particleQuality(quality: String) { - send("pq $quality") + fun partyDisband() { + send("party disband") + } + + fun partyKick(player: String) { + send("party kick $player") + } + + fun partyKickOffline() { + send("party kickoffline") } fun partyAllInvite() { send("party settings allinvite") } + fun partyPromote(player: String) { + send("party promote $player") + } + + fun partyChat(message: String) { + send("pc $message") + } + fun allChat(message: String) { send("ac $message") } + fun particleQuality(quality: String) { + send("pq $quality") + } + fun showRng(major: String? = null, minor: String? = null) = when { major == null || minor == null -> send("rng") else -> send("rng $major $minor") } + fun chatPrompt(prompt: String) { + send("chatprompt $prompt") + } + private fun send(command: String) { @Suppress("DEPRECATION") // TODO rename function |