I'd like to make my minigame rounds example: when blue team won the 1st round, the game will continue to 13th rounds, the more scores is the winner . just like Counter Strike hehe
Like this? PHP: private $wons = ['red' => 0, 'blue' => 0, 'continue' => 10];public function onWin(string $team){ $this->wons[$team]++; if($this->wons[$team] >= $this->wons['continue']){ //TODO you must stop the game. }}