paper

package
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 30, 2025 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Builds

func Builds(gameVersion string, latestFirst bool) ([]int, error)

Builds fetches the list of all available PaperMC build numbers for a given game version.

Parameters:

  • gameVersion: the Minecraft version string (e.g., "1.16.5", "1.13-pre7").
  • latestFirst: if true, returns the builds with higher build numbers first. If false, returns the builds with lower build numbers first.

Returns:

  • []int: a slice of build numbers for the specified game version.
  • error: an error if the game version is not supported or if any HTTP or JSON decoding issues occur.

func DownloadURL

func DownloadURL(gameVersion string, buildNumber int) (string, error)

DownloadURL returns the download URL for the PaperMC server JAR for a given game version and build number.

Parameters:

  • gameVersion: the Minecraft version string (e.g., "1.16.5", "1.13-pre7").
  • buildNumber: the PaperMC build number for the specified version.

Returns:

  • string: the direct download URL for the PaperMC server JAR file if the build exists.
  • error: an error if the game version or build number is not found, or if any HTTP or JSON decoding issues occur.

func Versions

func Versions(latestFirst bool) ([]string, error)

Versions fetches the list of all Minecraft paper server versions from the official PaperMC API version manifest.

Parameters:

  • latestFirst: if true, returns the versions with higher versions first. If false, returns the versions with lower versions first.

Returns:

  • []string: a slice of Minecraft paper server versions (e.g., "1.16.5", "1.13-pre7").
  • error: an error if any HTTP or JSON decoding issues occur.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL