mirror of
https://github.com/Deathgarden-Rebirth/Deathgarden_Rebirth-Rewrite.git
synced 2026-09-07 18:56:00 -05:00
put the sleep timer outside the function
This commit is contained in:
@@ -78,6 +78,8 @@ public function handle(): void
|
||||
));
|
||||
|
||||
$playerCount = $this->getTotalPlayersCount($players);
|
||||
if ($playerCount->hunters === 1 && ($playerCount->runners === 4 || $playerCount->runners === 5))
|
||||
sleep(10);
|
||||
$availableMatchConfigs = MatchConfiguration::getAvailableMatchConfigs($playerCount->runners, $playerCount->hunters);
|
||||
|
||||
if($availableMatchConfigs->isEmpty())
|
||||
|
||||
@@ -38,9 +38,6 @@ class MatchConfiguration extends Model
|
||||
*/
|
||||
public static function getAvailableMatchConfigs(int $runnerCount, int $hunterCount): Collection
|
||||
{
|
||||
if ($hunterCount === 1 && ($runnerCount === 4 || $runnerCount === 5))
|
||||
sleep(10);
|
||||
|
||||
return MatchConfiguration::where('runners', '<=', $runnerCount)
|
||||
->where('hunters', '<=', $hunterCount)
|
||||
->where('enabled', '=', true)
|
||||
|
||||
Reference in New Issue
Block a user