diff options
author | hannibal2 <24389977+hannibal002@users.noreply.github.com> | 2024-04-24 11:00:06 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-04-24 11:00:06 +0200 |
commit | 9f7ef2b05adaf526300018bf8fb4f42ca081c483 (patch) | |
tree | 6335a960b4cb606cf2ee6067682cc76cd4b375d6 /src/main/java/at/hannibal2/skyhanni/utils/HypixelCommands.kt | |
parent | d4c635abdc2db495659b0a64b3e035cd5f0aa222 (diff) | |
download | skyhanni-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/utils/HypixelCommands.kt')
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/utils/HypixelCommands.kt | 54 |
1 files changed, 54 insertions, 0 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/utils/HypixelCommands.kt b/src/main/java/at/hannibal2/skyhanni/utils/HypixelCommands.kt new file mode 100644 index 000000000..5507f4b99 --- /dev/null +++ b/src/main/java/at/hannibal2/skyhanni/utils/HypixelCommands.kt @@ -0,0 +1,54 @@ +package at.hannibal2.skyhanni.utils + +object HypixelCommands { + + fun bazaar(searchTerm: String) { + send("bz $searchTerm") + } + + fun warp(warp: String) { + send("warp $warp") + } + + fun teleportToPlot(plotName: String) { + send("tptoplot $plotName") + } + + fun getFromSacks(itemName: String, amount: Int) { + send("gfs $itemName $amount") + } + + fun widget() { + send("widget") + } + + fun chocolateFactory() { + send("cf") + } + + fun openBaker() { + send("openbaker") + } + + fun gardenLevels() { + send("gardenlevels") + } + + fun calendar() { + send("calendar") + } + + fun sacks() { + send("sax") + } + + fun toggleMusic() { + send("togglemusic") + } + + private fun send(command: String) { + @Suppress("DEPRECATION") + // TODO rename function + ChatUtils.sendCommandToServer(command) + } +} |