From d15d82ce6706c78265486a5114828ff5f1d02317 Mon Sep 17 00:00:00 2001 From: David Cole <40234707+DavidArthurCole@users.noreply.github.com> Date: Mon, 26 Aug 2024 08:16:14 -0400 Subject: Fix: Minor Typos/Formatting in Hoppity's (#2416) --- .../skyhanni/features/event/hoppity/HoppityEventSummary.kt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/java/at/hannibal2/skyhanni/features/event/hoppity/HoppityEventSummary.kt b/src/main/java/at/hannibal2/skyhanni/features/event/hoppity/HoppityEventSummary.kt index f334e407e..0d4e09b9c 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/event/hoppity/HoppityEventSummary.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/event/hoppity/HoppityEventSummary.kt @@ -197,12 +197,12 @@ object HoppityEventSummary { val currentYear = SkyBlockTime.now().year val statsYearList = statsStorage.keys.takeIf { it.isNotEmpty() } ?: mutableListOf() val statsYearFormatList = statsStorage.keys.takeIf { it.isNotEmpty() }?.map { - "§b$it${if (it == currentYear) " §a(Current)§r" else ""}" + "§b$it${if (it == currentYear && HoppityAPI.isHoppityEvent()) " §a(Current)§r" else ""}" }?.toMutableList() ?: mutableListOf() val parsedInt: Int? = if (it.size == 1) it[0].toIntOrNull() else null - val availableYearsFormat = "§eStats are available for the following years:§af\n${statsYearFormatList.joinToString("§e,") { it }}" + val availableYearsFormat = "§eHoppity Event Stats are available for the following years:§r\n${statsYearFormatList.joinToString("§e, ") { it }}" if (parsedInt == null) { if (HoppityAPI.isHoppityEvent()) { @@ -210,7 +210,7 @@ object HoppityEventSummary { sendStatsMessage(stats, currentYear) } else ChatUtils.chat(availableYearsFormat) } else if (!statsYearList.contains(parsedInt)) { - ChatUtils.chat("Could not find stats for year §b$parsedInt§e.\n$availableYearsFormat") + ChatUtils.chat("Could not find data for year §b$parsedInt§e.\n$availableYearsFormat") } else { val stats = getYearStats(parsedInt).first ?: return sendStatsMessage(stats, parsedInt) -- cgit