mirror of
https://github.com/EternalCodeTeam/EternalCombat.git
synced 2026-11-05 01:00:11 -05:00
Compare commits
1
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
3dc340c62d |
No files matched your search
+2
-1
@@ -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();
|
||||
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user