aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/at/hannibal2/skyhanni/features/event
diff options
context:
space:
mode:
authorDavid Cole <40234707+DavidArthurCole@users.noreply.github.com>2024-08-26 08:16:14 -0400
committerGitHub <noreply@github.com>2024-08-26 14:16:14 +0200
commitd15d82ce6706c78265486a5114828ff5f1d02317 (patch)
tree8a89a52d373a4749fd7118fdf2c78d5845fb556e /src/main/java/at/hannibal2/skyhanni/features/event
parent46bc7830c80ccb068a4cef62458dc5751dac07d3 (diff)
downloadskyhanni-d15d82ce6706c78265486a5114828ff5f1d02317.tar.gz
skyhanni-d15d82ce6706c78265486a5114828ff5f1d02317.tar.bz2
skyhanni-d15d82ce6706c78265486a5114828ff5f1d02317.zip
Fix: Minor Typos/Formatting in Hoppity's (#2416)
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/features/event')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/event/hoppity/HoppityEventSummary.kt6
1 files 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)