public function spectate(SpleefSessionData $data) { $data->joinArena($this->id, true); $this->specs[$data->getSession()->getUID()] = $data; $this->broadcastSpecs($data->getSession() . " is now spectating the match!"); $data->getSession()->teleport($this->config->spectatorSpawnLoc); }