Server setup
Build a Minecraft network with shared data
How a Minecraft network shares ranks, sanctions and messages between servers with one database and Redis, step by step with sofyCore.
- Network
- Redis
- BungeeCord
- Velocity
A Minecraft network is several backend servers behind a proxy such as BungeeCord, Waterfall or Velocity. Players move between servers, so data like ranks or bans must live outside any single server.
The two pieces
- A shared database keeps durable data: ranks, sanctions, profiles. Every server reads and writes the same database.
- A message broker tells the other servers that something changed, so they do not have to poll the database. Redis Pub/Sub is a common choice.
With sofyCore
One database for everyone
Point every server to the same MongoDB, MySQL or MariaDB database. SQLite cannot be shared.
One Redis and one prefix
Use the same
storage.redis.uriandstorage.redis.key-prefixon every server.A unique name per server
Leave
server.idempty so each server generates its own name, or set unique names such aslobby-1.Configure the proxy
Nothing is installed on the proxy. On Velocity keep
bungee-plugin-message-channel = true.
What stays in sync
Ranks and grants, sanctions, private messages, staff and admin chat, vanish, freeze, staff mode, boss bars, network announcements, maintenance and VIP points. Public chat stays local to each server.