From b2afe500f1eb8b52dfe5aebab44bb032e5827ab9 Mon Sep 17 00:00:00 2001 From: TylerS1066 Date: Tue, 2 Jul 2024 16:31:01 -0500 Subject: [PATCH] Final touches on assault bar format --- .../countercraft/movecraft/warfare/bar/AssaultBarManager.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/net/countercraft/movecraft/warfare/bar/AssaultBarManager.java b/src/main/java/net/countercraft/movecraft/warfare/bar/AssaultBarManager.java index f909719..b6a8370 100644 --- a/src/main/java/net/countercraft/movecraft/warfare/bar/AssaultBarManager.java +++ b/src/main/java/net/countercraft/movecraft/warfare/bar/AssaultBarManager.java @@ -40,11 +40,11 @@ public void run() { case PREPARATION: long elapsed = Duration.between(assault.getStartTime(), LocalDateTime.now()).toMillis(); bossBar.setProgress(Math.min(elapsed / (Config.AssaultDelay * 1000.0), 1.0)); - bossBar.setTitle(assault.getRegionName() + ": " + Math.round(((Config.AssaultDelay * 1000.0) - elapsed) / 1000.0)); + bossBar.setTitle(assault.getRegionName() + ": " + String.format("%,d", Math.round(((Config.AssaultDelay * 1000.0) - elapsed) / 1000.0))); break; case IN_PROGRESS: bossBar.setProgress(Math.min((double) assault.getDamages() / assault.getMaxDamages(), 1.0)); - bossBar.setTitle(assault.getRegionName() + ": " + String.format("%,d", assault.getDamages()) + "/" + String.format("%,d", assault.getMaxDamages())); + bossBar.setTitle(assault.getRegionName() + ": " + String.format("%,d", assault.getDamages()) + " / " + String.format("%,d", assault.getMaxDamages())); break; }