43,146
edits
(Updating to match new version of source page) |
(Updating to match new version of source page) |
||
Line 5: | Line 5: | ||
</div> | </div> | ||
<div lang="en" dir="ltr" class="mw-content-ltr"> | |||
<div class="mw-collapsible mw-collapsed"> | <div class="mw-collapsible mw-collapsed"> | ||
'''Defaults''' | '''Defaults''' | ||
</div> | |||
<div lang="en" dir="ltr" class="mw-content-ltr"> | |||
<div class="mw-collapsible-content"> | <div class="mw-collapsible-content"> | ||
Windows paths: | Windows paths: | ||
</div> | |||
<div lang="en" dir="ltr" class="mw-content-ltr"> | |||
<syntaxhighlight lang="json"> | <syntaxhighlight lang="json"> | ||
"ModPaths": [ | "ModPaths": [ | ||
Line 21: | Line 26: | ||
} | } | ||
</syntaxhighlight> | </syntaxhighlight> | ||
</div> | |||
<div lang="en" dir="ltr" class="mw-content-ltr"> | |||
Full serverconfig.json (Linux paths): | Full serverconfig.json (Linux paths): | ||
</div> | |||
<div lang="en" dir="ltr" class="mw-content-ltr"> | |||
<syntaxhighlight lang="json"> | <syntaxhighlight lang="json"> | ||
{ | { | ||
Line 388: | Line 397: | ||
} | } | ||
</syntaxhighlight> | </syntaxhighlight> | ||
</div> | |||
</div> | </div> | ||
</div> | </div> | ||
<div lang="en" dir="ltr" class="mw-content-ltr"> | |||
<div class="mw-collapsible"> | <div class="mw-collapsible"> | ||
'''Sample with explanations''' | '''Sample with explanations''' | ||
</div> | |||
<div class="mw-translate-fuzzy"> | <div class="mw-translate-fuzzy"> | ||
Line 405: | Line 417: | ||
</div> | </div> | ||
// Where server should look for mods. | <div lang="en" dir="ltr" class="mw-content-ltr"> | ||
// Where server should look for mods. | |||
"ModPaths": [ | "ModPaths": [ | ||
"/absolute/path/to/Mods", | "/absolute/path/to/Mods", | ||
"Mods" | "Mods" | ||
], | ], | ||
</div> | |||
// 2-letter code of localization to use on this server. Determines language of server messages. | <div lang="en" dir="ltr" class="mw-content-ltr"> | ||
// 2-letter code of localization to use on this server. Determines language of server messages. | |||
"ServerLanguage": "en", | "ServerLanguage": "en", | ||
// Short string, visible in the public server listing. | // Short string, visible in the public server listing. | ||
Line 427: | Line 442: | ||
// If server should try to use UPnP for port forwarding. | // If server should try to use UPnP for port forwarding. | ||
"Upnp": false, | "Upnp": false, | ||
</div> | |||
// Maximum number of players. If an integer value is passed it will set the max concurrent players the server may have. Higher values requires more RAM and CPU. | <div lang="en" dir="ltr" class="mw-content-ltr"> | ||
// Maximum number of players. If an integer value is passed it will set the max concurrent players the server may have. Higher values requires more RAM and CPU. | |||
"MaxClients": 16, | "MaxClients": 16, | ||
</div> | |||
// If not null, requires a password for players to log in. | <div lang="en" dir="ltr" class="mw-content-ltr"> | ||
// If not null, requires a password for players to log in. | |||
"Password": "our secret password", | "Password": "our secret password", | ||
// Whether or not to only allow whitelisted players to connect to the server. | // Whether or not to only allow whitelisted players to connect to the server. | ||
"OnlyWhitelisted": false, | "OnlyWhitelisted": false, | ||
</div> | |||
// Whether or not add this server to the master server (public server listing). | <div lang="en" dir="ltr" class="mw-content-ltr"> | ||
// Whether or not add this server to the master server (public server listing). | |||
"AdvertiseServer": true, | "AdvertiseServer": true, | ||
// If true, every time a player joins the server verifies if that player is a valid, logged in, registered buyer of the game. | // If true, every time a player joins the server verifies if that player is a valid, logged in, registered buyer of the game. | ||
"VerifyPlayerAuth": true, | "VerifyPlayerAuth": true, | ||
</div> | |||
// If players can hit each other. | <div lang="en" dir="ltr" class="mw-content-ltr"> | ||
// If players can hit each other. | |||
"AllowPvP": true, | "AllowPvP": true, | ||
// Disables fire spreading if false. | // Disables fire spreading if false. | ||
Line 447: | Line 470: | ||
// If false, completely disables any falling block behavior. | // If false, completely disables any falling block behavior. | ||
"AllowFallingBlocks": true, | "AllowFallingBlocks": true, | ||
</div> | |||
// If true, this features are disabled: "MaxChunkRadius", "MaxClients", "Upnp", "EntityDebugMode", "TickTime", "RandomBlockTicksPerChunk" | <div lang="en" dir="ltr" class="mw-content-ltr"> | ||
// If true, this features are disabled: "MaxChunkRadius", "MaxClients", "Upnp", "EntityDebugMode", "TickTime", "RandomBlockTicksPerChunk" | |||
"HostedMode": false, | "HostedMode": false, | ||
// Sends additional debug information to the client, which displays it if it also has entity debug mode enabled. | // Sends additional debug information to the client, which displays it if it also has entity debug mode enabled. | ||
Line 456: | Line 481: | ||
// | // | ||
"AnalyzeMode": false, | "AnalyzeMode": false, | ||
</div> | |||
// Whether to compress data when sending it to the client. | <div lang="en" dir="ltr" class="mw-content-ltr"> | ||
// Whether to compress data when sending it to the client. | |||
"CompressPackets": true, | "CompressPackets": true, | ||
// Sets antiabuse level, this protects against a range of malicious player operations, but it is pretty glitchy in v1.7. | // Sets antiabuse level, this protects against a range of malicious player operations, but it is pretty glitchy in v1.7. | ||
"AntiAbuse": 0, | "AntiAbuse": 0, | ||
</div> | |||
// Width of the world. | <div lang="en" dir="ltr" class="mw-content-ltr"> | ||
// Width of the world. | |||
"MapSizeX": 1024000, | "MapSizeX": 1024000, | ||
// Height of the world. | // Height of the world. | ||
Line 477: | Line 506: | ||
"roll": null | "roll": null | ||
}, | }, | ||
</div> | |||
// If true, the calendar will never stop even if there are no players online. | <div lang="en" dir="ltr" class="mw-content-ltr"> | ||
// If true, the calendar will never stop even if there are no players online. | |||
"PassTimeWhenEmpty": false, | "PassTimeWhenEmpty": false, | ||
// Makes clients time out after that amount of seconds have passed. | // Makes clients time out after that amount of seconds have passed. | ||
Line 488: | Line 519: | ||
// | // | ||
"SpawnCapPlayerScaling": 0.75, | "SpawnCapPlayerScaling": 0.75, | ||
</div> | |||
// How many blocks to tick at most each server tick. | <div lang="en" dir="ltr" class="mw-content-ltr"> | ||
// How many blocks to tick at most each server tick. | |||
"MaxMainThreadBlockTicks": 10000, | "MaxMainThreadBlockTicks": 10000, | ||
// How many random ticks per chunk should be executed. Simply said, a higher value makes grass grow back faster. | // How many random ticks per chunk should be executed. Simply said, a higher value makes grass grow back faster. | ||
Line 499: | Line 532: | ||
// The interval of time in ms between each execution of the random tick system. | // The interval of time in ms between each execution of the random tick system. | ||
"BlockTickInterval": 300, | "BlockTickInterval": 300, | ||
</div> | |||
// This tells the world generator to skip stripes of chunks. Useful for testing ore deposit generation. | <div lang="en" dir="ltr" class="mw-content-ltr"> | ||
// This tells the world generator to skip stripes of chunks. Useful for testing ore deposit generation. | |||
// i.e. if you set SkipEveryChunkRow to 3 and SkipEveryChunkRowWidth to 2, then every 3rd chunk strip there'll be 2 chunk strips missing | // i.e. if you set SkipEveryChunkRow to 3 and SkipEveryChunkRowWidth to 2, then every 3rd chunk strip there'll be 2 chunk strips missing | ||
"SkipEveryChunkRow": 0, | "SkipEveryChunkRow": 0, | ||
Line 508: | Line 543: | ||
// | // | ||
"RegenerateCorruptChunks": false, | "RegenerateCorruptChunks": false, | ||
</div> | |||
// Anti-spam for the chat window. How many milliseconds are required between 2 messages. 1000 ms = 1 second. | <div lang="en" dir="ltr" class="mw-content-ltr"> | ||
// Anti-spam for the chat window. How many milliseconds are required between 2 messages. 1000 ms = 1 second. | |||
"ChatRateLimitMs": 1000, | "ChatRateLimitMs": 1000, | ||
// The max amount of group channels a player can create | // The max amount of group channels a player can create | ||
Line 515: | Line 552: | ||
// Has no use currently. | // Has no use currently. | ||
"GroupChatHistorySize": 20, | "GroupChatHistorySize": 20, | ||
</div> | |||
// Run a command when server starts. For example, players without access to the server console can op themselves. Can run multiple commands by separating them with linebreaks. | <div lang="en" dir="ltr" class="mw-content-ltr"> | ||
// Run a command when server starts. For example, players without access to the server console can op themselves. Can run multiple commands by separating them with linebreaks. | |||
"StartupCommands": "/time \n /info seed", | "StartupCommands": "/time \n /info seed", | ||
</div> | |||
// Internal value. | <div lang="en" dir="ltr" class="mw-content-ltr"> | ||
// Internal value. | |||
"NextPlayerGroupUid": 10, | "NextPlayerGroupUid": 10, | ||
</div> | |||
// Default role for new players. | <div lang="en" dir="ltr" class="mw-content-ltr"> | ||
// Default role for new players. | |||
"DefaultRoleCode": "suplayer", | "DefaultRoleCode": "suplayer", | ||
"Roles": [ | "Roles": [ | ||
Line 556: | Line 599: | ||
... | ... | ||
], | ], | ||
</div> | |||
"WorldConfig": { | <div lang="en" dir="ltr" class="mw-content-ltr"> | ||
"WorldConfig": { | |||
// Seed. Does not guarantee exactly the same world each time! | // Seed. Does not guarantee exactly the same world each time! | ||
"Seed": "1234567890", | "Seed": "1234567890", | ||
Line 573: | Line 618: | ||
// World generation type. Possible values: "standard", "superflat". | // World generation type. Possible values: "standard", "superflat". | ||
"WorldType": "standard", | "WorldType": "standard", | ||
</div> | |||
// Settings of new world. Basically can use the same properties as with /worldconfig | <div lang="en" dir="ltr" class="mw-content-ltr"> | ||
// Settings of new world. Basically can use the same properties as with /worldconfig | |||
"WorldConfiguration": { | "WorldConfiguration": { | ||
"worldClimate": "realistic", | "worldClimate": "realistic", | ||
Line 582: | Line 629: | ||
"graceTimer": "0" | "graceTimer": "0" | ||
}, | }, | ||
</div> | |||
// Height of the world. | <div lang="en" dir="ltr" class="mw-content-ltr"> | ||
// Height of the world. | |||
"MapSizeY": null, | "MapSizeY": null, | ||
// Anything you want to see in Author field, usually it's nickname. | // Anything you want to see in Author field, usually it's nickname. | ||
Line 594: | Line 643: | ||
} | } | ||
</syntaxhighlight> | </syntaxhighlight> | ||
</div> | |||
</div> | </div> | ||
</div> | </div> | ||
Line 671: | Line 721: | ||
</syntaxhighlight> | </syntaxhighlight> | ||
{{ | {{Game navbox}} |