diff --git a/src/main/java/me/Demon/BlockWars/Game/GameData.java b/src/main/java/me/Demon/BlockWars/Game/GameData.java index 755a59c..2a5de11 100644 --- a/src/main/java/me/Demon/BlockWars/Game/GameData.java +++ b/src/main/java/me/Demon/BlockWars/Game/GameData.java @@ -91,7 +91,6 @@ public class GameData { for (Player player : Bukkit.getOnlinePlayers()) { initializePlayerData(player); // 初始化玩家数据 } - // 初始化主播参数 tasks.add(new BukkitRunnable() { @Override public void run() { @@ -100,6 +99,12 @@ public class GameData { } catch (Exception e) { e.printStackTrace(); } + } + }.runTaskTimerAsynchronously(Main.plugin, 0L, 20L)); + // 初始化主播参数 + tasks.add(new BukkitRunnable() { + @Override + public void run() { updateBossBar(); if (!checking) { checkComplete(); // 检测玩家当前挑战完成进度