count(); $queuedRunners = QueuedPlayer::whereSide(MatchmakingSide::Runner)->count(); $inGamePlayers = DB::table('game_user') ->join('games', 'game_user.game_id', '=', 'games.id') ->whereIn('games.status', [ MatchStatus::Closed, MatchStatus::Opened, MatchStatus::Created, ])->count(); return [$queuedRunners, $queuedHunters, $inGamePlayers]; }); return Response::json(new OnlinePlayersResponse(...$counts)); } /** * Legacy endpoint for launchers that predate the signed update manifest: they compare this version and send players to the download page. */ public function getLauncherVersion(): ?string { return json_encode(LauncherRelease::current()?->version); } public function getLauncherMessage(): ?string { return json_encode(LauncherMessage::getMessage()); } }