The MapSync server is recommened to be run install a docker container
- Install the Docker Engine, if you haven't already.
- Install Docker Compose (We're using Docker Compose V2, so update if you haven't already done so.)
- Open a terminal.
- Clone our code.
git clone https://github.com/CivPlatform/map-sync.git
- Change your working directory.
cd map-sync/
- To run the server:
docker compose up -d- To stop the headless server:
docker compose down
Your MapSync server is now running!
Updating your MapSync server is breeze!
- Return to the folder you install the server too
- Should be the one with the
docker-compose.yamlfile
- Should be the one with the
- Download the update and restart the server
docker compose up -d --pull "always"
Your now running the latest MapSync server!
By default, a whitelist will deny any connections, which can be turned off from the config file. (Caution)
You can also add and remove players via the commands below or via the config files
If you want to manage your mapsync server via the CLI:
- Return to the folder you install the server too
- Should be the one with the
docker-compose.yamlfile
- Should be the one with the
- Attach to the container
docker compose run --rm -it -p 12312:12312 map-sync
- Run any of these commands as you wish:
help -- prints more info about below commands
whitelist_load -- reload whitelist
whitelist_save -- force whitelist to save
whitelist_add_ign <name> -- requires the player to have connected in the past
whitelist_remove_ign <name> -- requires the player to have connected in the past
whitelist_add <uuid> -- add to whitelist by UUID
whitelist_remove <uuid> -- remove from whitelist by UUID
list -- lists players
send <uuid/name> -- sends all available data to player
kick <uuid/name> -- kicks player from sync server
- When your down, use the key sequence to detach from the contaier
CTRL-p CTRL-q- DO NOT USE
CTRL-c, this will stop the server- If you did accidentally stop the server, run
docker compose up -d
- If you did accidentally stop the server, run
You can control who has access to a Sync Server by editing its allowed-users.txt. If someone connects who is not allowed access yet, their name and UUID gets written to denied-users.txt, from where you can just cut+paste it into allowed-users.txt and restart the server to grant access.
These files can be found in the data directory