aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/at/hannibal2/skyhanni/test
diff options
context:
space:
mode:
authorNopoTheGamer <40329022+NopoTheGamer@users.noreply.github.com>2024-10-05 17:55:52 +1000
committerGitHub <noreply@github.com>2024-10-05 09:55:52 +0200
commit5a77e28bf9bd7f9d10eb561212ea5f68512892b7 (patch)
treeb6e24f7ce4431251aca3e273be891f18fa3b444e /src/main/java/at/hannibal2/skyhanni/test
parentc636d88309279ec458f96c6e6eadd93a39a6c912 (diff)
downloadskyhanni-5a77e28bf9bd7f9d10eb561212ea5f68512892b7.tar.gz
skyhanni-5a77e28bf9bd7f9d10eb561212ea5f68512892b7.tar.bz2
skyhanni-5a77e28bf9bd7f9d10eb561212ea5f68512892b7.zip
Fix: error punctuation (#2651)
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/test')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/test/command/ErrorManager.kt6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/test/command/ErrorManager.kt b/src/main/java/at/hannibal2/skyhanni/test/command/ErrorManager.kt
index df3d85267..56a50eceb 100644
--- a/src/main/java/at/hannibal2/skyhanni/test/command/ErrorManager.kt
+++ b/src/main/java/at/hannibal2/skyhanni/test/command/ErrorManager.kt
@@ -154,8 +154,12 @@ object ErrorManager {
fullErrorMessages[randomId] =
"```\nSkyHanni ${SkyHanniMod.version}: $rawMessage\n(full stack trace)\n \n$fullStackTrace\n$extraDataString```"
+ var finalMessage = message
+ if (finalMessage.last() !in ".?!") {
+ finalMessage += "§c."
+ }
ChatUtils.clickableChat(
- "§c[SkyHanni-${SkyHanniMod.version}]: $message§c. Click here to copy the error into the clipboard.",
+ "§c[SkyHanni-${SkyHanniMod.version}]: $finalMessage Click here to copy the error into the clipboard.",
onClick = { copyError(randomId) },
"§eClick to copy!",
prefix = false,