common

package
v0.1.9 Latest Latest
Warning

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

Go to latest
Published: Oct 26, 2021 License: AGPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CompareHash

func CompareHash(force bool, hash string) bool

CompareHash loads the current hash from server.hash in the current directory and compares it with the given hash.

func ConfigureEula

func ConfigureEula() error

ConfigureEula writes the eula.txt in the current directory if the env variable EULA is set.

func ConfigureOps

func ConfigureOps() error

ConfigureOps configures the ops.json

func ConfigureServerProperties

func ConfigureServerProperties() error

ConfigureServerProperties configures the server.properties

func ConfigureWhitelist

func ConfigureWhitelist() error

ConfigureWhitelist configures the whitelist.json

func SaveHash

func SaveHash(hash string) error

SaveHash saves the new hash as server.hash in the current directory.

func ServerFlags added in v0.1.4

func ServerFlags(jarPath string) []string

AikarFlags returns the Aikar flags for minecraft.

func UpdatePlugins

func UpdatePlugins(plugins []string)

UpdatePlugins updates the plugins provided with SERVER_PLUGINS, currently only supports bukkit based plugins.

Types

This section is empty.

Jump to

Keyboard shortcuts

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