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