From eb9aa5f94b37e16ede0f512fbcdcfbd09d229dbe Mon Sep 17 00:00:00 2001 From: hannibal2 <24389977+hannibal00212@users.noreply.github.com> Date: Tue, 29 Aug 2023 00:15:27 +0200 Subject: Added /shversion --- src/main/java/at/hannibal2/skyhanni/config/commands/Commands.kt | 4 ++++ src/main/java/at/hannibal2/skyhanni/test/SkyHanniTestCommand.kt | 4 ++++ 2 files changed, 8 insertions(+) (limited to 'src/main/java/at/hannibal2') diff --git a/src/main/java/at/hannibal2/skyhanni/config/commands/Commands.kt b/src/main/java/at/hannibal2/skyhanni/config/commands/Commands.kt index ab94a1e6d..b87961a2c 100644 --- a/src/main/java/at/hannibal2/skyhanni/config/commands/Commands.kt +++ b/src/main/java/at/hannibal2/skyhanni/config/commands/Commands.kt @@ -178,6 +178,10 @@ object Commands { "shdebugdata", "Prints debug data in the clipboard" ) { SkyHanniTestCommand.debugData(it) } + registerCommand( + "shversion", + "Prints the SkyHanni version in the chat" + ) { SkyHanniTestCommand.debugVersion() } registerCommand( "shcarrot", "Toggles receiving the 12 fortune from carrots" diff --git a/src/main/java/at/hannibal2/skyhanni/test/SkyHanniTestCommand.kt b/src/main/java/at/hannibal2/skyhanni/test/SkyHanniTestCommand.kt index 8cbc28855..63bc5f471 100644 --- a/src/main/java/at/hannibal2/skyhanni/test/SkyHanniTestCommand.kt +++ b/src/main/java/at/hannibal2/skyhanni/test/SkyHanniTestCommand.kt @@ -178,6 +178,10 @@ class SkyHanniTestCommand { OSUtils.copyToClipboard("LorenzVec($x, $y, $z)") } + fun debugVersion() { + LorenzUtils.chat("§eYou are using SkyHanni ${SkyHanniMod.version}") + } + fun debugData(args: Array) { if (args.size == 2) { if (args[0] == "profileName") { -- cgit