player = $player; } public function getNewGamemode() : GameMode{ return $this->newGamemode; } }