Configuration

Config reference

The main Stratum settings, their defaults, and what each one does.

This page lists the main settings in stratum.json and the defaults that a fresh install writes. Use the dotted path with /stratum get and /stratum set, for example /stratum set PlayerPrivacy.Enabled true.

Performance settings are in stratum-performance.json, and command settings are in stratum-commands.json. Performance tuning covers the first file.

Diagnostics

KeyDefaultEffect
Diagnostics.LogStartupSummarytruePrints a summary of the active features at startup
Diagnostics.RunStartupPreflighttrueRuns the startup checks before the tick loop starts

UpdateChecker

Checks GitHub for a newer release. See Privacy and outbound requests.

KeyDefaultEffect
UpdateChecker.EnabledtrueTurns the check on
UpdateChecker.CheckOnStartuptrueChecks once at startup
UpdateChecker.CheckIntervalHours12Hours between checks
UpdateChecker.NotifyStaffInGametrueTells online staff when a release is available

ServerStats

Sends anonymous statistics to the Stratum statistics endpoint. See Privacy and outbound requests.

KeyDefaultEffect
ServerStats.EnabledtrueTurns reporting on
ServerStats.IntervalMinutes30Minutes between reports
ServerStats.TimeoutSeconds10Seconds to wait for the endpoint

Hardening

KeyDefaultEffect
Hardening.InventoryGuardstrueHides inventory contents from players who have not opened the container
Hardening.PreserveVanillaProtocoltrueProtocol compatibility switch. Leave at the default
Hardening.PacketMonitoringtrueMonitors packet traffic. /stratum packets shows the current state
Hardening.BlockBreakGuardstrueMaster switch for block break validation. Its settings are in BlockBreakGuards
Hardening.EntityGuardsfalseShown in the status output. This build applies no entity guard, so the value has no effect
Hardening.EntityPacketRangeGuardtrueLimits entity packets to players in range
Hardening.BlockEntityPacketRangeGuardtrueLimits block entity packets to players in range

PacketLimits

Caps the packet rate per client. On by default.

KeyDefaultEffect
PacketLimits.EnabledtrueTurns the limit on
PacketLimits.KickViolationstrueKicks clients that break the limit
PacketLimits.KickAfterViolations8Violations inside the window before a kick
PacketLimits.WindowSeconds5Length of the violation window

PacketBackPressure

Caps how many packets the main thread drains per tick. Off by default. Turn it on only when the main thread spends too long draining packets.

KeyDefaultEffect
PacketBackPressure.EnabledfalseTurns the cap on
PacketBackPressure.MaxMillisecondsPerTick25Time budget for draining packets per tick
PacketBackPressure.MaxPacketsPerClientPerTick32Packets drained per client per tick
PacketBackPressure.MaxQueueDepthPerClient2000Queue depth at which a client is kicked

BlockBreakGuards

KeyDefaultEffect
BlockBreakGuards.EnabledtrueChecks block break progress on the server before accepting a break
BlockBreakGuards.DropViolationstrueRejects suspicious breaks without a message

Anticheat

Off by default. Turn it on with Anticheat.Enabled. Nothing else in this section runs while it is off.

KeyDefaultEffect
Anticheat.EnabledfalseTurns the checks on
Anticheat.StaffAlertstrueTells online staff when a violation is found

ClientModPolicy

Off by default. Controls which client mods a player may join with.

KeyDefaultEffect
ClientModPolicy.EnabledfalseTurns the policy on
ClientModPolicy.StrictWhitelisttrueSends Stratum’s allow list to the client, which disables unlisted client mods for that session. It does not disconnect the player.
ClientModPolicy.IncludeServerUniversalModstrueAdds the mods the server marks as universal to the whitelist
ClientModPolicy.AllowModIds[]Extra mod IDs to allow
ClientModPolicy.LogPolicyOnStartuptrueLogs the policy state at startup

LoginProtection

Gives players temporary damage immunity when they join.

KeyDefaultEffect
LoginProtection.EnabledtrueTurns the protection on
LoginProtection.ProtectionSeconds5Length of the immunity
LoginProtection.CancelOnHorizontalMovetrueEnds the immunity when the player moves
LoginProtection.CancelInFireOrLavatrueEnds the immunity in fire or lava

PlayerPrivacy

Off by default. Hides map pins and rounds coordinates. Nothing else in this section has an effect until PlayerPrivacy.Enabled is true.

KeyDefaultEffect
PlayerPrivacy.EnabledfalseTurns the privacy controls on
PlayerPrivacy.HideMapPinstrueHides players’ map pins from each other
PlayerPrivacy.AllowGroupMapVisibilitytrueLets members of the same group see each other’s pins
PlayerPrivacy.CoordinateSnapBlocks0Rounds the coordinates other players see to a grid of this many blocks. 0 means no rounding. It has no effect while HideMapPins is true. Staff, and group members when AllowGroupMapVisibility is on, see exact coordinates

CrowdSpawn

Spreads new players away from a crowd at spawn.

KeyDefaultEffect
CrowdSpawn.EnabledtrueTurns the spread on
CrowdSpawn.MinimumNearbyPlayers24Players near spawn before the spread starts
CrowdSpawn.DetectionRadiusBlocks48Radius used to count nearby players
CrowdSpawn.SpreadRadiusBlocks64How far from spawn new players can be placed
CrowdSpawn.SafePositionTries15Safe-position attempts before placement
CrowdSpawn.IncludeReturningPlayersfalseApplies the spread to returning players too

MobSpawning

KeyDefaultEffect
MobSpawning.HostileEnabledtrueNatural spawning of hostile mobs
MobSpawning.NeutralEnabledtrueNatural spawning of neutral mobs
MobSpawning.PassiveEnabledtrueNatural spawning of passive mobs
MobSpawning.NaturalSpawnMultiplier1Multiplier on natural spawn rates, clamped from 0 to 1

/mobs controls natural spawning at runtime.

Worldgen

KeyDefaultEffect
Worldgen.SplitTerrainPasstrueRuns terrain generation as a split pass
Worldgen.AutoDisableSplitForModstrueTurns the split pass off when a mod that conflicts with it is loaded

Turn the split pass off by hand if a mod conflicts with it.

Combat and groups

KeyDefaultEffect
CoopCombat.EnabledfalseLets several players hit the same creature. /pvecombat toggles it
FriendlyFire.AllowGroupDamagetrueLets group members damage each other. /friendlyfire toggles it
CombatLog.EnabledfalsePenalties for disconnecting during PvP
Groups.EnabledtrueTurns the group administration features on
Groups.RelationsEnabledtrueLets groups set relations with each other
Groups.AlliesCountAsSameSidetrueAllied groups count as one side for friendly fire
Groups.ShowStateToPlayerstrueShows group kind, tag, and relations to regular players in /group info

Backup

See Backups and restore.

KeyDefaultEffect
Backup.EnabledfalseTurns scheduled backups on
Backup.IntervalMinutes360Minutes between backups
Backup.RetainCount5Backup files to keep
Backup.LogBackupstrueLogs backup start and completion

Announcements

KeyDefaultEffect
Announcements.EnabledfalseTurns timed announcements on