diff options
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/utils/HypixelCommands.kt')
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/utils/HypixelCommands.kt | 5 |
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 |