diff options
author | hannibal2 <24389977+hannibal002@users.noreply.github.com> | 2023-07-05 12:29:49 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-07-05 12:29:49 +0200 |
commit | c4092f9f36ef2d6a1914ee5ef606522d35e14cdc (patch) | |
tree | 5f606fa38d17f3e2471e75060c06acb9f65a2c81 /src/main/java/at/hannibal2/skyhanni/test | |
parent | 5bedd8978dc05f60ef752a95a2062e99be41281c (diff) | |
download | skyhanni-c4092f9f36ef2d6a1914ee5ef606522d35e14cdc.tar.gz skyhanni-c4092f9f36ef2d6a1914ee5ef606522d35e14cdc.tar.bz2 skyhanni-c4092f9f36ef2d6a1914ee5ef606522d35e14cdc.zip |
mirror verse jump and run (#265)
Co-authored-by: hannibal2 <24389977+hannibal00212@users.noreply.github.com>
Co-authored-by: Roman / Linnea Gräf <nea@nea.moe>
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/test')
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/test/SkyHanniTestCommand.kt | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/test/SkyHanniTestCommand.kt b/src/main/java/at/hannibal2/skyhanni/test/SkyHanniTestCommand.kt index d7b1b0029..0ec54b3a0 100644 --- a/src/main/java/at/hannibal2/skyhanni/test/SkyHanniTestCommand.kt +++ b/src/main/java/at/hannibal2/skyhanni/test/SkyHanniTestCommand.kt @@ -152,11 +152,18 @@ class SkyHanniTestCommand { LorenzUtils.chat("§e[SkyHanni] stopped ${modules.size} listener classes.") } - fun copyLocation() { + fun copyLocation(args: Array<String>) { val location = LocationUtils.playerLocation() - val x = LorenzUtils.formatDouble(location.x) - val y = LorenzUtils.formatDouble(location.y) - val z = LorenzUtils.formatDouble(location.z) + val x = LorenzUtils.formatDouble(location.x + 0.001).replace(",", ".") + val y = LorenzUtils.formatDouble(location.y + 0.001).replace(",", ".") + val z = LorenzUtils.formatDouble(location.z + 0.001).replace(",", ".") + if (args.size == 1) { + if (args[0].equals("json", false)) { + OSUtils.copyToClipboard("\"$x:$y:$z\"") + return + } + } + OSUtils.copyToClipboard("LorenzVec($x, $y, $z)") } } |