From 87d192e8933281bb39f425b9f373c47b23a0e110 Mon Sep 17 00:00:00 2001 From: Thunderblade73 <85900443+Thunderblade73@users.noreply.github.com> Date: Mon, 6 May 2024 18:47:24 +0200 Subject: Improvement: Open rng inv via the Display (#1694) Co-authored-by: hannibal2 <24389977+hannibal00212@users.noreply.github.com> --- src/main/java/at/hannibal2/skyhanni/utils/HypixelCommands.kt | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/main/java/at/hannibal2/skyhanni/utils') 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 -- cgit