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
buildPurpurService.PurpurBuilddestPathstringlogIProgress<string>ctCancellationToken
Returns
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
mcVersionstringctCancellationToken