Multiserver
LightCoins is designed for single server setups and for big multi server setups with velocity as proxy.
LightCoins supports different possibilities for storing and sharing balances across servers. Here are the settings for these options.
MySQL is NOT for sharing balances between servers
It is not recommended to use type: mysql
for multi-server setups, as LightCoins interacts directly with the database connection to retrieve data.
You can still use this option as long as your network has fewer than approximately 50 players.
If you have more than 50 players, I highly recommend setting up a Redis server and using type: redis
. With Redis, all servers are synchronized in real-time with zero lag, regardless of the number of players, even with thousands.
Another major benefit is that you can pay, add, remove, or set balances for players on different servers in real-time. This is not possible with type: mysql
!
Player messages across servers
If you want, for example, a player to receive a notification when another player sends them money, even if they are on a different server, simply install LightCore into your Velocity proxy plugin directory and restart it.
Last updated