aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/at/hannibal2
diff options
context:
space:
mode:
authorhannibal2 <24389977+hannibal00212@users.noreply.github.com>2023-08-29 00:15:27 +0200
committerhannibal2 <24389977+hannibal00212@users.noreply.github.com>2023-08-29 00:15:27 +0200
commiteb9aa5f94b37e16ede0f512fbcdcfbd09d229dbe (patch)
treefeafe0d386ecd3dee84407261b104f1f8a84edee /src/main/java/at/hannibal2
parent79aa4c9575d9b374af60781265b1dc75e19355e6 (diff)
downloadskyhanni-eb9aa5f94b37e16ede0f512fbcdcfbd09d229dbe.tar.gz
skyhanni-eb9aa5f94b37e16ede0f512fbcdcfbd09d229dbe.tar.bz2
skyhanni-eb9aa5f94b37e16ede0f512fbcdcfbd09d229dbe.zip
Added /shversion
Diffstat (limited to 'src/main/java/at/hannibal2')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/config/commands/Commands.kt4
-rw-r--r--src/main/java/at/hannibal2/skyhanni/test/SkyHanniTestCommand.kt4
2 files changed, 8 insertions, 0 deletions
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
@@ -179,6 +179,10 @@ object Commands {
"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"
) { CaptureFarmingGear.reverseCarrotFortune() }
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<String>) {
if (args.size == 2) {
if (args[0] == "profileName") {