# 🥏 Cross-Server Setup

This page might be useful for you if you plan to use **CoinsEngine** on multiple servers connected to the same MySQL database.

First of all, make sure that `Sync_Interval` option in `config.yml` is enabled (set to **1 or above**, not <mark style="color:red;">**0**</mark> or <mark style="color:red;">**-1**</mark>). This is very important to make balance synchronization working.

## Shared Balance

To make a currency with shared balance on multiple servers, make sure that configuration of desired currency on all servers is similar to each other and has the same values in `Column_Name` and `Synchronized` options:

```yaml
Column_Name: money # Your custom column name for database.
Synchronized: true # Must be enabled to prevent glitches.
```

This will make that currency to read and write player's balances from the same database column for all servers. And will periodically update balance of online players with value stored in the database.

## Divided Balance

If you want to use the same currency on multiple servers, but with divided balances, you must use different column name in `Column_Name` option in all servers.&#x20;

Optionally you can disable `Synchronized` option if currency balance is **per one server** only.

{% hint style="info" %}
You can still share currency balance between some servers and keep it divided on other ones. Just set up the `Column_Name` setting according to your preferences.
{% endhint %}
