Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Builds ¶
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 ¶
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 ¶
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.
Click to show internal directories.
Click to hide internal directories.