\n"); exit(1); } echo json_encode([ "php_version" => sprintf("%d.%d", PHP_MAJOR_VERSION, PHP_MINOR_VERSION), //deprecated "base_version" => VersionInfo::BASE_VERSION, "build" => (int) $argv[4], "is_dev" => VersionInfo::IS_DEVELOPMENT_BUILD, "channel" => VersionInfo::BUILD_CHANNEL, "git_commit" => $argv[1], "mcpe_version" => ProtocolInfo::MINECRAFT_VERSION_NETWORK, "date" => time(), //TODO: maybe we should embed this in VersionInfo? "details_url" => "https://github.com/$argv[3]/releases/tag/$argv[2]", "download_url" => "https://github.com/$argv[3]/releases/download/$argv[2]/PocketMine-MP.phar", "source_url" => "https://github.com/$argv[3]/tree/$argv[2]", "build_log_url" => "https://github.com/$argv[3]/actions/runs/$argv[5]", "php_download_url" => $argv[6], ], JSON_PRETTY_PRINT | JSON_UNESCAPED_SLASHES | JSON_THROW_ON_ERROR) . "\n";