aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/at/hannibal2/skyhanni/utils
diff options
context:
space:
mode:
authorhannibal2 <24389977+hannibal00212@users.noreply.github.com>2024-02-16 08:06:54 +0100
committerhannibal2 <24389977+hannibal00212@users.noreply.github.com>2024-02-16 08:06:54 +0100
commite8212f12c77e4d77002cd4ccadb8056c25ae6cb6 (patch)
treea32d499d8ccd0268e51ca4ac498de6a3201c7ca7 /src/main/java/at/hannibal2/skyhanni/utils
parent6207030868055a29c926ab97f5254b828e3e5dcd (diff)
downloadskyhanni-e8212f12c77e4d77002cd4ccadb8056c25ae6cb6.tar.gz
skyhanni-e8212f12c77e4d77002cd4ccadb8056c25ae6cb6.tar.bz2
skyhanni-e8212f12c77e4d77002cd4ccadb8056c25ae6cb6.zip
Fixed /warp is command replace feature.
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/utils')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/utils/ChatUtils.kt4
-rw-r--r--src/main/java/at/hannibal2/skyhanni/utils/LorenzUtils.kt5
2 files changed, 8 insertions, 1 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/utils/ChatUtils.kt b/src/main/java/at/hannibal2/skyhanni/utils/ChatUtils.kt
index 34f42e629..f8a156644 100644
--- a/src/main/java/at/hannibal2/skyhanni/utils/ChatUtils.kt
+++ b/src/main/java/at/hannibal2/skyhanni/utils/ChatUtils.kt
@@ -200,4 +200,8 @@ object ChatUtils {
fun sendMessageToServer(message: String) {
sendQueue.add(message)
}
+
+ fun sendCommandToServer(command: String) {
+ sendMessageToServer("/$command")
+ }
}
diff --git a/src/main/java/at/hannibal2/skyhanni/utils/LorenzUtils.kt b/src/main/java/at/hannibal2/skyhanni/utils/LorenzUtils.kt
index eafcc3fef..27b6a1d9d 100644
--- a/src/main/java/at/hannibal2/skyhanni/utils/LorenzUtils.kt
+++ b/src/main/java/at/hannibal2/skyhanni/utils/LorenzUtils.kt
@@ -331,7 +331,10 @@ object LorenzUtils {
}
fun sendCommandToServer(command: String) {
- ChatUtils.sendMessageToServer("/$command")
+ if (command.startsWith("/")) {
+ ChatUtils.debug("Sending wrong command to server? ($command)")
+ }
+ ChatUtils.sendCommandToServer(command)
}
/**