diff options
author | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2023-12-08 16:38:38 +0100 |
---|---|---|
committer | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2023-12-08 16:38:38 +0100 |
commit | 628c23e8a8713c7ece482fa4ea7eb979f2561017 (patch) | |
tree | c116ed94a25176ee214559f38269211aa0803c15 /src/main/java/at/hannibal2/skyhanni/data | |
parent | 4fa9b95a280515b1fa71425e8e1c61d5b4a009f6 (diff) | |
download | skyhanni-628c23e8a8713c7ece482fa4ea7eb979f2561017.tar.gz skyhanni-628c23e8a8713c7ece482fa4ea7eb979f2561017.tar.bz2 skyhanni-628c23e8a8713c7ece482fa4ea7eb979f2561017.zip |
explaining the usage on wrong command parameters, added color support, code cleanup
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/data')
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/data/TitleManager.kt | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/data/TitleManager.kt b/src/main/java/at/hannibal2/skyhanni/data/TitleManager.kt index 383600ff9..5b8bbd2b8 100644 --- a/src/main/java/at/hannibal2/skyhanni/data/TitleManager.kt +++ b/src/main/java/at/hannibal2/skyhanni/data/TitleManager.kt @@ -29,14 +29,14 @@ class TitleManager { fun command(args: Array<String>) { if (args.size < 4) { - LorenzUtils.userError("Specify title text to test") + LorenzUtils.userError("Usage: /shsendtitle <duration> <height> <fontSize> <text ..>") return } val duration = args[0].toInt().seconds val height = args[1].toDouble() val fontSize = args[2].toDouble() - val title = "§6" + args.drop(3).joinToString(" ") + val title = "§6" + args.drop(3).joinToString(" ").replace("&", "§") sendTitle(title, duration, height, fontSize) } |