Table of Contents

Class PurpurService

Namespace
McServerLauncher.Services
Assembly
McServerLauncher.dll

Downloads the Purpur server jar. Purpur is a Paper fork: a runnable jar, plugins in plugins/, and every Bukkit plugin works on it unchanged.

public class PurpurService
Inheritance
PurpurService
Inherited Members

Methods

DownloadPurpurServerAsync(PurpurBuild, string, IProgress<string>?, CancellationToken)

Downloads a build to destPath, verified before it is kept.

public Task DownloadPurpurServerAsync(PurpurService.PurpurBuild build, string destPath, IProgress<string>? log, CancellationToken ct = default)

Parameters

build PurpurService.PurpurBuild
destPath string
log IProgress<string>
ct CancellationToken

Returns

Task

GetLatestBuildAsync(string, CancellationToken)

Latest build for a Minecraft version, or null when Purpur has none for it.

public Task<PurpurService.PurpurBuild?> GetLatestBuildAsync(string mcVersion, CancellationToken ct = default)

Parameters

mcVersion string
ct CancellationToken

Returns

Task<PurpurService.PurpurBuild>