Table of Contents

Class ServerConfig

Namespace
Shard.Server.Modules
Assembly
Shard.Server.Modules.dll

Server-wide settings loaded from config.json. Mirrors the core of the upstream HytaleServerConfig (server identity + player limits); bind address stays a CLI option, and transient/auth details live elsewhere. Provided to the service registry so modules can read it.

public sealed class ServerConfig
Inheritance
ServerConfig
Inherited Members

Properties

AssetsPath

Path to the asset pack (contains Common/ and Server/).

public string AssetsPath { get; set; }

Property Value

string

CommandPrefix

The leading marker required for console/chat commands (default /).

public string CommandPrefix { get; set; }

Property Value

string

DefaultWorld

public string DefaultWorld { get; set; }

Property Value

string

DisabledModules

Modules to skip loading, by name or Group:Name id (case-insensitive). Everything is enabled by default; a disabled module that another enabled module hard-depends on will fail the load.

public string[] DisabledModules { get; set; }

Property Value

string[]

MaxPlayers

public int MaxPlayers { get; set; }

Property Value

int

MaxViewRadius

public int MaxViewRadius { get; set; }

Property Value

int

Motd

Message of the day shown to clients.

public string Motd { get; set; }

Property Value

string

Password

Optional server password ("" = none).

public string Password { get; set; }

Property Value

string

ServerName

public string ServerName { get; set; }

Property Value

string

TelemetryEnabled

public bool TelemetryEnabled { get; set; }

Property Value

bool

Version

Schema version, for future migrations.

public int Version { get; set; }

Property Value

int