Skip to content

Commit 818f2e7

Browse files
sebampuerohyperdefined
authored andcommitted
feat: update lore formatting
1 parent d83bc55 commit 818f2e7

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/main/java/lol/hyper/toolstats/commands/CommandToolStats.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,8 @@ private void fixItemLore(ItemStack original, Player player) {
210210

211211
if (flightTime != null) {
212212
if (toolStats.config.getBoolean("enabled.flight-time")) {
213-
Component line = toolStats.configTools.formatLore("flight-time", "{time}", toolStats.numberFormat.formatDouble((double) flightTime / 1000));
213+
Map<String, String> flightTimeFormatted = toolStats.numberFormat.formatTime(flightTime);
214+
Component line = toolStats.configTools.formatLoreMultiplePlaceholders("flight-time", flightTimeFormatted);
214215
lore.add(line);
215216
}
216217
}

0 commit comments

Comments
 (0)