Class PaperService
- Namespace
- McServerLauncher.Services
- Assembly
- McServerLauncher.dll
Downloads the Paper server jar from PaperMC's "fill" API (v3). Paper is a runnable jar, so it launches like vanilla (-jar). Plugins go in the server's plugins/ folder.
public class PaperService
- Inheritance
-
PaperService
- Inherited Members
Methods
DownloadPaperServerAsync(PaperBuild, string, IProgress<string>?, CancellationToken)
public Task DownloadPaperServerAsync(PaperService.PaperBuild build, string destPath, IProgress<string>? log, CancellationToken ct = default)
Parameters
buildPaperService.PaperBuilddestPathstringlogIProgress<string>ctCancellationToken
Returns
GetLatestBuildAsync(string, CancellationToken)
Latest build for a Minecraft version. Prefers the newest STABLE build; if none exist yet (very new versions only have ALPHA/BETA), falls back to the newest build. Null if unavailable.
public Task<PaperService.PaperBuild?> GetLatestBuildAsync(string mcVersion, CancellationToken ct = default)
Parameters
mcVersionstringctCancellationToken