resources

package
v0.0.0-...-b9cfb1f Latest Latest
Warning

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

Go to latest
Published: Feb 8, 2019 License: GPL-3.0 Imports: 3 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GoMineConfig

type GoMineConfig struct {
	ServerName string `yaml:"Server LAN Name"`
	ServerMotd string `yaml:"Server MOTD"`
	ServerIp   string `yaml:"Server IP"`
	ServerPort uint16 `yaml:"Server Port"`

	MaximumPlayers  uint `yaml:"Maximum Players"`
	DefaultGameMode byte `yaml:"Default Gamemode"`

	DebugMode bool `yaml:"Debug Mode"`

	DefaultLevel     string `yaml:"Default Level"`
	DefaultGenerator string `yaml:"Default Generator"`

	ForceResourcePacks   bool   `yaml:"Forced Resource Packs"`
	SelectedResourcePack string `yaml:"Selected Resource Pack"`

	XBOXLiveAuth  bool `yaml:"XBOX Live Auth"`
	UseEncryption bool `yaml:"Use Encryption"`

	AllowQuery       bool `yaml:"Allow Query"`
	AllowPluginQuery bool `yaml:"Allow Plugin Query"`

	MaxViewDistance int32 `yaml:"Max View Distance"`
}

func NewGoMineConfig

func NewGoMineConfig(serverPath string) *GoMineConfig

NewGoMineConfig returns a new configuration struct. Creates the file if it does not yet exist.

Jump to

Keyboard shortcuts

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