Skip to content

Commit

Permalink
Remove milliseconds from cooldown's.
Browse files Browse the repository at this point in the history
  • Loading branch information
vLuckyyy committed Jan 9, 2025
1 parent eb68fdf commit c6ba4f1
Show file tree
Hide file tree
Showing 8 changed files with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ void execute(@Context Player player) {
this.noticeService
.create()
.notice(translation -> translation.afk().afkDelay())
.placeholder("{TIME}", DurationUtil.format(time))
.placeholder("{TIME}", DurationUtil.format(time, true))
.player(uuid)
.send();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ void slowmode(@Context Viewer viewer, @Arg Duration duration) {

this.noticeService.create()
.notice(translation -> translation.chat().slowModeSet())
.placeholder("{SLOWMODE}", DurationUtil.format(duration))
.placeholder("{SLOWMODE}", DurationUtil.format(duration, true))
.onlinePlayers()
.send();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ void onChatSlowMode(AsyncPlayerChatEvent event) {
.create()
.player(uniqueId)
.notice(translation -> translation.chat().slowMode())
.placeholder("{TIME}", DurationUtil.format(remainingDuration))
.placeholder("{TIME}", DurationUtil.format(remainingDuration, true))
.send();

event.setCancelled(true);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ private boolean hasRepairDelay(UUID uuid) {
this.noticeService
.create()
.notice(translation -> translation.item().repairDelayMessage())
.placeholder("{TIME}", DurationUtil.format(time))
.placeholder("{TIME}", DurationUtil.format(time, true))
.player(uuid)
.send();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ void execute(@Context Player player, @Join String message) {

this.noticeService.create()
.notice(translation -> translation.helpOp().helpOpDelay())
.placeholder("{TIME}", DurationUtil.format(time))
.placeholder("{TIME}", DurationUtil.format(time, true))
.player(uuid)
.send();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ void executeJailList(@Context Player player) {
this.noticeService.create()
.notice(translation -> translation.jailSection().jailListPlayerEntry())
.placeholder("{PLAYER}", this.server.getOfflinePlayer(jailedPlayer.getPlayerUniqueId()).getName())
.placeholder("{REMAINING_TIME}", DurationUtil.format(jailedPlayer.getRemainingTime()))
.placeholder("{REMAINING_TIME}", DurationUtil.format(jailedPlayer.getRemainingTime(), true))
.placeholder("{DETAINED_BY}", jailedPlayer.getDetainedBy())
.player(player.getUniqueId())
.send();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ public void run() {

this.noticeService.create()
.notice(translation -> translation.jailSection().jailDetainCountdown())
.placeholder("{REMAINING_TIME}", DurationUtil.format(jailedPlayer.getRemainingTime()))
.placeholder("{REMAINING_TIME}", DurationUtil.format(jailedPlayer.getRemainingTime(), true))
.player(jailedPlayer.getPlayerUniqueId())
.send();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ private boolean hasRandomTeleportDelay(Player player) {

this.noticeService.create()
.notice(translation -> translation.randomTeleport().randomTeleportDelay())
.placeholder("{TIME}", DurationUtil.format(time))
.placeholder("{TIME}", DurationUtil.format(time, true))
.player(uniqueId)
.send();

Expand Down

0 comments on commit c6ba4f1

Please sign in to comment.