From 628c23e8a8713c7ece482fa4ea7eb979f2561017 Mon Sep 17 00:00:00 2001 From: hannibal2 <24389977+hannibal00212@users.noreply.github.com> Date: Fri, 8 Dec 2023 16:38:38 +0100 Subject: explaining the usage on wrong command parameters, added color support, code cleanup --- src/main/java/at/hannibal2/skyhanni/data/TitleManager.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/main/java/at/hannibal2/skyhanni/data/TitleManager.kt') 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) { if (args.size < 4) { - LorenzUtils.userError("Specify title text to test") + LorenzUtils.userError("Usage: /shsendtitle ") 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) } -- cgit