API reference Obsidian.API.Configuration
ServerConfiguration class
public sealed class ServerConfiguration
In Obsidian.API.
Constructors
public ServerConfiguration();Properties
AllowLan
public bool AllowLan { get; set; }Allows the server to advertise itself as a LAN server to devices on your network.
AllowOperatorRequests
public bool AllowOperatorRequests { get; set; }Allow people to requests to become an operator.
public bool? Baah { get; set; }BindAddress
public string BindAddress { get; set; }The IP address to listen on, e.g. 127.0.0.1 to accept local connections only. Empty means every IPv4 address.
ChatSpamThresholdSeconds
public int ChatSpamThresholdSeconds { get; set; }Chat burst budget in seconds of ticks. A non-positive value disables this limit.
CommandSpamThresholdSeconds
public int CommandSpamThresholdSeconds { get; set; }Command burst budget, independent of chat. A non-positive value disables this limit.
EnableRcon
public bool EnableRcon { get; }Enabled Remote Console operation.
Remarks
See more at https://wiki.vg/RCON
public ushort EntityBroadcastRangePercentage { get; set; }FeedbackWebhookUrl
public string FeedbackWebhookUrl { get; set; }Discord webhook receiving player feedback. Null or empty disables the Feedback quick action.
MaxPlayers
public int MaxPlayers { get; set; }Maximum amount of players that is allowed to be connected at the same time.
Messages
public MessagesConfiguration Messages { get; set; }Messages that the server will use by default for various actions.
Motd
public string Motd { get; set; }Server description.
Network
public NetworkConfiguration Network { get; set; }Network Configuration
OnlineMode
public bool OnlineMode { get; set; }Whether the server uses MojangAPI for loading skins etc.
ParallelLevelTicks
public bool ParallelLevelTicks { get; set; }Experimental, and off unless turned on: whether a world's levels (the overworld, the nether, the end and plugin dimensions) tick at the same time, each on a thread of its own. Off, the default, the world's own level ticks first and its dimensions after it.
Remarks
It only helps a server with more than one processor (counting a container's CPU limit): with one, the levels' ticks can't run at the same time anyway, so leave it off there.
Port
public int Port { get; set; }The port on which to listen for incoming connection attempts; 0 lets the operating system pick a free one.
public int PregenerateChunkRange { get; set; }Rcon
public RconConfiguration Rcon { get; set; }Remote Console configuration
public ServerListQuery ServerListQuery { get; set; }public bool ServerShutdownStopsProgram { get; set; }SimulationDistance
public byte SimulationDistance { get; set; }How far from players, in chunks, mobs move and blocks tick, like vanilla's simulation-distance.
Remarks
Like vanilla's, it doesn't depend on the view distance: a lower one leaves the edge of what players see still, which saves the server work. Players only load the chunks they see, though, so a higher one ticks no further than the view distance.
public int SpawnChunkRadius { get; set; }TimeTickSpeedMultiplier
public int TimeTickSpeedMultiplier { get; set; }The speed at which world time and rain time go by.
ViewDistance
public byte ViewDistance { get; set; }The view distance of the server.
Remarks
Players with higher view distance will use the server's view distance.
Whitelist
public bool Whitelist { get; set; }Whether only whitelisted players may join. Off when a configuration doesn't set it, so an existing server.json keeps admitting everyone; a fresh install gets vanilla's default (on) from ServerConfiguration.CreateDefault, which writes it explicitly.
Methods
CreateDefault()
public static ServerConfiguration CreateDefault();The configuration written for a fresh install, with vanilla's defaults.
Fields
FreshInstallWhitelist
public const bool FreshInstallWhitelist = true;Vanilla's whitelist default, which only a freshly written configuration takes.