Added serverCode to documentation and sample distro

This commit is contained in:
TheFlash787 2020-08-12 23:57:05 +01:00
parent 411c9fce34
commit 14b2c79b1b
2 changed files with 8 additions and 0 deletions

View File

@ -143,6 +143,10 @@ Only one server in the array should have the `mainServer` property enabled. This
Whether or not the server can be autoconnected to. If false, the server will not be autoconnected to even when the user has the autoconnect setting enabled. Whether or not the server can be autoconnected to. If false, the server will not be autoconnected to even when the user has the autoconnect setting enabled.
### `Server.serverCode: string`
A code that allows you to privately distribute certain servers on the launcher. Players will only be able to see the server in their launcher if they have specified the code in the settings. If left blank, all players can see the server.
### `Server.modules: Module[]` ### `Server.modules: Module[]`
An array of module objects. An array of module objects.

View File

@ -24,6 +24,7 @@
"largeImageKey": "server-prod" "largeImageKey": "server-prod"
}, },
"mainServer": true, "mainServer": true,
"serverCode": "",
"autoconnect": true, "autoconnect": true,
"modules": [ "modules": [
{ {
@ -438,6 +439,7 @@
"largeImageKey": "server-test" "largeImageKey": "server-test"
}, },
"mainServer": false, "mainServer": false,
"serverCode": "",
"autoconnect": true, "autoconnect": true,
"modules": [ "modules": [
{ {
@ -852,6 +854,7 @@
"largeImageKey": "server-test" "largeImageKey": "server-test"
}, },
"mainServer": false, "mainServer": false,
"serverCode": "",
"autoconnect": true, "autoconnect": true,
"modules": [ "modules": [
{ {
@ -1283,6 +1286,7 @@
"largeImageKey": "server-test" "largeImageKey": "server-test"
}, },
"mainServer": false, "mainServer": false,
"serverCode": "",
"autoconnect": false, "autoconnect": false,
"modules": [ "modules": [
{ {