Compare commits

...
Author SHA1 Message Date
Michał Wojtas 3dc340c62d Add additional placeholder for combatNotification
Signed-off-by: Michał Wojtas <wojtas.michal90@gmail.com>
2026-03-03 13:18:13 +01:00
2 changed files with 3 additions and 1 deletions

No files matched your search

@@ -16,7 +16,8 @@ public class MessagesSettings extends OkaeriConfig {
@Comment({
" ",
"# Configure the combat log notification displayed to players.",
"# You can use the {TIME} variable to display the remaining combat time.",
"# Placeholders: {SECONDS} - displays numeric value of seconds left in combat e.g. \"10\"",
"# {TIME} - displays formatted value with metric e.g \"10s\" or \"150ms\"",
" ",
})
public Notice combatNotification = BukkitNotice.builder()
@@ -46,6 +46,7 @@ public class FightTask implements Runnable {
.player(player.getUniqueId())
.notice(this.config.messagesSettings.combatNotification)
.placeholder("{TIME}", DurationUtil.format(remaining, this.config.messagesSettings.withoutMillis))
.placeholder("{SECONDS}", String.valueOf(remaining.toSeconds()))
.send();
}