Can several servers share the same balances?

Can several servers share the same balances?

View as Markdown ·

Yes. Point every server at the same MySQL, MariaDB or PostgreSQL database in config.yml. Every change is written so that two servers changing the same balance at once lose nothing, and a payment another server already spent is refused.

Each server keeps the balances of its online players in memory. Redis is recommended: turn on the Redis sync to have the other servers pick up a change straight away. Without it, an offline balance can be up to 30 seconds old on another server, and a change made on a server with nobody online reaches the player's server when they rejoin. No money is created either way. Behind a Velocity proxy, the Velocity companion does the same for players online elsewhere and shows them their payments straight away. Give each server its own server name if some currencies should only work on some of them.

My Cart
Spider

Your cart is empty

Looks like the spiders padded through here. Pick a plugin and it will show up here. Continue shopping