gameconfig

package
v0.0.0-...-12f3b1c Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	MemoryTooSmall = errors.New("Memory too small")
)

Functions

This section is empty.

Types

type Config

type Config struct {
	C runner.Config
}

func New

func New() *Config

func (*Config) GenerateAuthKey

func (c *Config) GenerateAuthKey() string

func (*Config) GenerateWorld

func (c *Config) GenerateWorld(worldName, seed string)

func (*Config) SetDetectServerVersion

func (c *Config) SetDetectServerVersion(detect bool)

func (*Config) SetDifficulty

func (c *Config) SetDifficulty(difficulty string) error

func (*Config) SetLevelType

func (c *Config) SetLevelType(levelType string) error

func (*Config) SetMotd

func (c *Config) SetMotd(motd string)

func (*Config) SetOperators

func (c *Config) SetOperators(ops []string)

func (*Config) SetServer

func (c *Config) SetServer(version, downloadURL string)

func (*Config) SetWhitelist

func (c *Config) SetWhitelist(wlist []string)

func (*Config) SetWorld

func (c *Config) SetWorld(worldName string, generationId string) error

Jump to

Keyboard shortcuts

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