account = $account; $this->accessToken = $accessToken; $this->clientToken = $clientToken; } public function getResponseData(bool $includeAvailableProfiles = false): array { $result = [ 'accessToken' => $this->accessToken, 'clientToken' => $this->clientToken, 'selectedProfile' => [ 'id' => str_replace('-', '', $this->account->uuid), 'name' => $this->account->username, 'legacy' => false, ], ]; if ($includeAvailableProfiles) { // The Mojang themselves haven't come up with anything yet with these availableProfiles $availableProfiles[0] = $result['selectedProfile']; $result['availableProfiles'] = $availableProfiles; } return $result; } }