Cross-server
Several servers can share the same orders. An order made on one server can be filled on any other.
- Change
type: sqliteunderstorage:totype: mysql,type: mariadbortype: mongodbon every server, with the same database andtable-prefix. - Change
enabled: falseundernetwork:toenabled: true, with the same Redis server andchannelon every server. - Give each server its own name in
server-name: "survival"undernetwork:. - Restart every server.
storage:
type: mysql
network:
enabled: true
server-name: "survival"
channel: "orders"
redis:
host: 10.0.0.5
port: 6379- The database decides every delivery, so an order can never be filled past its amount, even when players on different servers deliver at the same moment.
- Redis tells the other servers what changed, so menus update right away.
- Payouts and refunds go to the player on the server they are on, or when they next join.
- SQLite can’t be shared. Cross-server mode is turned off with a warning while
type: sqliteunderstorage:is set.