Network storage

MCIdentity Central Server

The Central Server is a standalone web service that owns all MCIdentity data for a whole network. Game servers running MCIdentity do not connect to a database at all: they ask the Central Server for everything they need and send it every change. One deployment can back any number of game servers, so every player sees the same identities wherever they join.

What it is

How it works

  1. You start the Central Server with a secret API token, and give the same token to each game server in its MCIdentity configuration, together with the server's address.

  2. When a player logs in, the game server first checks that the Central Server is reachable. That check also wakes up a deployment that sleeps when idle, and players are politely asked to wait while it starts.

  3. From then on, every read and write MCIdentity makes goes to the Central Server over the network, in the background, so the game never pauses for it. Data in use is still cached in the game server's memory.

  4. The Central Server checks every request, saves the change in its own database, and answers. Because there is only one copy of the data, two game servers can never disagree about a player.

Storage

The Central Server keeps its data in one of two databases, both with exactly the same layout:

DatabaseBest for
SQLite (default)Getting started. A single local file, built in, with nothing extra to install.
PostgreSQLProduction networks and larger deployments.

The layout also matches the SQLite file the MCIdentity plugin writes on its own, so an existing server's data file can be moved onto the Central Server as it is.

Security

The Central Server holds every player's data, so it is locked down by default:

Running it

Compatibility

Each Central Server release is checked against the requests every plugin actually sends.

Central ServerMCIdentityMCIdentityRuneMCIdentitySkillMCIdentityCosmetic
3.4.x4.6.x and 4.7.x0.1.x0.3.x0.0.x

The add-ons reach the Central Server through the core plugin's own connection, so an add-on stored on the central server needs MCIdentity 4.7.0 or newer.

To point a game server at it, see Installation & Setup. For its release history, see the Central Server change logs.