mirror of
https://github.com/Deathgarden-Rebirth/Deathgarden_Rebirth-Rewrite.git
synced 2026-04-26 10:15:28 -05:00
recheck playercount after delay
This commit is contained in:
parent
bb93c05ec0
commit
3992dc94c8
|
|
@ -80,6 +80,7 @@ public function handle(): void
|
||||||
$playerCount = $this->getTotalPlayersCount($players);
|
$playerCount = $this->getTotalPlayersCount($players);
|
||||||
if ($playerCount->hunters === 1 && ($playerCount->runners === 4 || $playerCount->runners === 5))
|
if ($playerCount->hunters === 1 && ($playerCount->runners === 4 || $playerCount->runners === 5))
|
||||||
sleep(10);
|
sleep(10);
|
||||||
|
$playerCount = $this->getTotalPlayersCount($players);
|
||||||
$availableMatchConfigs = MatchConfiguration::getAvailableMatchConfigs($playerCount->runners, $playerCount->hunters);
|
$availableMatchConfigs = MatchConfiguration::getAvailableMatchConfigs($playerCount->runners, $playerCount->hunters);
|
||||||
|
|
||||||
if($availableMatchConfigs->isEmpty())
|
if($availableMatchConfigs->isEmpty())
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user