diff --git a/src/main/java/com/io/yutian/thewardungeon/dungeon/DungeonInstance.java b/src/main/java/com/io/yutian/thewardungeon/dungeon/DungeonInstance.java index 48cfe8c..754817b 100644 --- a/src/main/java/com/io/yutian/thewardungeon/dungeon/DungeonInstance.java +++ b/src/main/java/com/io/yutian/thewardungeon/dungeon/DungeonInstance.java @@ -236,7 +236,6 @@ public class DungeonInstance { break; } state = DungeonState.RUNNING; - countdown = dungeon.getConfig().getOption().getCountdown(); for (DungeonPlayer dungeonPlayer : getPlayers()) { dungeonPlayer.getPlayer().setGameMode(dungeon.getConfig().getOption().getGameMode()); dungeonPlayer.getPlayer().teleport(dungeon.getConfig().getStartPoint().toLocation(worldInstance.getWorld())); @@ -305,8 +304,8 @@ public class DungeonInstance { } private void updateBossBar() { - bossBar.setTitle("倒计时: " + countdown + "/" + dungeon.getConfig().getOption().getCountdown()); - float progress = (float) countdown / (float) dungeon.getConfig().getOption().getCountdown(); + bossBar.setTitle("倒计时: " + countdown + "/" + totalCountdown); + float progress = (float) countdown / (float) totalCountdown; bossBar.setProgress(progress); bossBar.setColor(BossBarUtil.getBarColor(progress)); }