Skip to content

server.conf

fn load #

fn load() !Config

fn load_from #

fn load_from(path string) !Config

struct Config #

struct Config {
pub mut:
	motd          string = 'Vedrock Server'
	sub_motd      string = 'A V Bedrock server'
	address       string = '0.0.0.0'
	port          int    = 19132
	max_players   int    = 20
	view_distance int    = 8
	gamemode      string = 'survival'
	xbox_auth     bool   = true
	// encryption negotiates Bedrock protocol encryption. Off by default - the
	// implementation is spec-complete but not yet verified against a real client,
	// so leaving it off keeps sessions cleartext and connectable.
	encryption            bool
	compression_threshold int    = 256
	generator             string = 'flat'
	language              string = 'en'
	resource_packs        bool   = true
	resource_packs_dir    string = 'resource_packs'
	force_resource_packs  bool
	allow_client_packs    bool = true
	cdn_packs             string
	default_world         string = 'world'
	load_all_worlds       bool
	debug                 bool
}

fn (Config) bind_address #

fn (c &Config) bind_address() string