Server Configuration
Every server needs to have a valid configuration file.
Default config (located at cfg/config.json
):
{
"name": "Just Cause 4 Multiplayer Server",
"description": "A default server for Just Cause 4 Multiplayer",
"port": 7777,
"max_players": 100,
"password": "",
"announce": true,
"key": "",
"steam_web_api_key": "",
"icon_url": "",
"banner_url": "",
"acl": {},
"update_url": "https://servers.jc4mp.com/api/v1/servers",
"startup_resources": [
"resource1",
"resource2",
"resource3"
]
}
name
(string)
This is the name of your server that will appear in the server list.
description
(string)
This is the description of your server that will appear in the server list.
port
(number)
This is the port that your server will use to allow players to connect to it. This value should be between 1 and 65535, and is 7777 by default. The server also hosts a HTTP server on the port specified in this field + 1. The HTTP server is used to serve information about the server and mods to players.
Make sure that you allow both ports through your firewall, otherwise players will not be able to connect to your server.
max_players
(number)
This is the maximum players that can be connected to your server at the same time.
password
(string)
This is the password for your server. If it is a valid string, then players who want to connect to your server will be required to enter the correct password before connecting. The default value is an empty string, which means that there will be no password for the server and anyone can connect.
announce
(boolean)
Set this to true if you would like to announce your server to the JC4MP server list, allowing anyone to see it and connect to it. If this is false, your server will still run properly, but it will not appear in the server list, so players will need to direct connect with your server's IP instead.
Keep in mind that you also need to have a valid key
and update_url
for your server to appear on the server list - setting this to true is not enough.
startup_resources
(string array)
This field is a list of resources to load when the server starts up.