aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/at/hannibal2/skyhanni/utils
diff options
context:
space:
mode:
authorThunderblade73 <85900443+Thunderblade73@users.noreply.github.com>2024-05-06 18:47:24 +0200
committerGitHub <noreply@github.com>2024-05-06 18:47:24 +0200
commit87d192e8933281bb39f425b9f373c47b23a0e110 (patch)
tree1fa259be0e205a0b36555473efd8815d9b5e1466 /src/main/java/at/hannibal2/skyhanni/utils
parent8043115be517f8294c81d71594461e003f1adf80 (diff)
downloadskyhanni-87d192e8933281bb39f425b9f373c47b23a0e110.tar.gz
skyhanni-87d192e8933281bb39f425b9f373c47b23a0e110.tar.bz2
skyhanni-87d192e8933281bb39f425b9f373c47b23a0e110.zip
Improvement: Open rng inv via the Display (#1694)
Co-authored-by: hannibal2 <24389977+hannibal00212@users.noreply.github.com>
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/utils')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/utils/HypixelCommands.kt5
1 files changed, 5 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
index c09c77395..a2328297d 100644
--- a/src/main/java/at/hannibal2/skyhanni/utils/HypixelCommands.kt
+++ b/src/main/java/at/hannibal2/skyhanni/utils/HypixelCommands.kt
@@ -62,6 +62,11 @@ object HypixelCommands {
send("ac $message")
}
+ fun showRng(major: String? = null, minor: String? = null) = when {
+ major == null || minor == null -> send("rng")
+ else -> send("rng $major $minor")
+ }
+
private fun send(command: String) {
@Suppress("DEPRECATION")
// TODO rename function