diff --git a/src/BedWars/game/Game.php b/src/BedWars/game/Game.php index e475daa..75faf65 100644 --- a/src/BedWars/game/Game.php +++ b/src/BedWars/game/Game.php @@ -850,10 +850,12 @@ public function tick() : void{ break; case Game::STATE_REBOOT; $team = $this->winnerTeam; + foreach($this->winnerTeam->getPlayers() as $player){ + if($this->rebootTime == 15){ + $player->sendTitle(TextFormat::BOLD . TextFormat::GOLD . "VICTORY!", "", 5, 1000); + } + } foreach(array_merge($this->players, $this->spectators) as $player){ - if($this->rebootTime == 15){ - $player->sendTitle(TextFormat::BOLD . TextFormat::GOLD . "VICTORY!", "", 5, 500); - } Scoreboard::remove($player); Scoreboard::new($player, 'bedwars', TextFormat::BOLD . TextFormat::YELLOW . "Bed Wars"); Scoreboard::setLine($player, 1, " "); @@ -874,4 +876,4 @@ public function tick() : void{ break; } } -} \ No newline at end of file +}