Skip to content

Commit

Permalink
Stats2b2t - Made playtime capitalization consistent
Browse files Browse the repository at this point in the history
  • Loading branch information
0xTas committed Dec 29, 2024
1 parent c4298e9 commit aa7b0f7
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions src/main/java/dev/stardust/commands/Stats2b2t.java
Original file line number Diff line number Diff line change
Expand Up @@ -107,23 +107,23 @@ public void build(LiteralArgumentBuilder<CommandSource> builder) {
long minutesInMonth = TimeUnit.SECONDS.toMinutes(playtimeSecondsInMonth);

if (daysInMonth >= 28) {
formattedPlaytimeInMonth = "1 Month";
formattedPlaytimeInMonth = "1 month";
} else if (daysInMonth >= 14) {
formattedPlaytimeInMonth = daysInMonth / 7 + " Weeks";
formattedPlaytimeInMonth = daysInMonth / 7 + " weeks";
} else if (daysInMonth >= 7) {
formattedPlaytimeInMonth = "1 Week";
formattedPlaytimeInMonth = "1 week";
} else if (daysInMonth >= 2) {
formattedPlaytimeInMonth = daysInMonth + " Days";
formattedPlaytimeInMonth = daysInMonth + " days";
} else if (daysInMonth > 0) {
formattedPlaytimeInMonth = "1 Day";
formattedPlaytimeInMonth = "1 day";
} else if (hoursInMonth >= 2) {
formattedPlaytimeInMonth = hoursInMonth + " Hours";
formattedPlaytimeInMonth = hoursInMonth + " hours";
} else if (hoursInMonth > 0) {
formattedPlaytimeInMonth = "1 Hour";
formattedPlaytimeInMonth = "1 hour";
} else if (minutesInMonth >= 2) {
formattedPlaytimeInMonth = minutesInMonth + " Minutes";
formattedPlaytimeInMonth = minutesInMonth + " minutes";
} else if (minutesInMonth > 0) {
formattedPlaytimeInMonth = "1 Minute";
formattedPlaytimeInMonth = "1 minute";
} else if (playtimeSecondsInMonth > 1) {
formattedPlaytimeInMonth = playtimeSecondsInMonth + " seconds";
} else {
Expand Down

0 comments on commit aa7b0f7

Please sign in to comment.