What are you searching for?

Magnus

Magnus

A modular, high-performance, and resilient synchronization suite for Minecraft Fabric servers. Features real-time inventory sync, cross-server chat, and global player management.

download 28 Downloads · favorite 0 Followers · Updated 1 week ago
Fabric Management Optimization Storage Technology Utility 1.21.1

Versions

inventory_2
Magnus Sync v1.3.2

v1.3.2 · 1 week ago · 3.76 MB

Release download
Fabric 1.21.1
inventory_2
Magnus Sync v1.3.1

v1.3.1 · 1 week ago · 3.76 MB

Release download
Fabric 1.21.1
inventory_2
Magnus Sync v1.3.0

v1.3.0 · 1 week ago · 3.75 MB

Release download
Fabric 1.21.1
inventory_2
Magnus Sync v1.2.0

v1.2.0 · 1 week ago · 3.73 MB

Release download
Fabric 1.21.1
inventory_2
Magnus Sync v1.1.2

v1.1.2 · 1 week ago · 3.69 MB

Release download
Fabric 1.21.1

About

Magnus (Server-Side)

Build Status Minecraft Version Fabric Kotlin License GitHub Tag Modrinth Version CurseForge Version

A high-performance, fault-tolerant inventory synchronization mod for Minecraft Fabric servers.

Features

Core Sync

  • Multi-Server Sync: Syncs Inventory, Ender Chest, Health, Hunger, XP, Potion Effects.
  • High Performance: Uses Redis for sub-millisecond data retrieval.
  • Persistence: Uses PostgreSQL for permanent reliable storage.
  • Fault Tolerance:
    • Circuit Breaker: Detects database failures automatically.
    • Local Fallback: Saves data to disk if the database goes down.
    • Auto-Recovery: "The Janitor" service automatically restores data when the database comes back online.

Modules

Module Description
Inventory Sync Core synchronization of inventory, ender chest, health, hunger, XP, and potion effects. Enabled by default.
Global Chat Syncs chat messages across all servers via Redis pub/sub. Raw text format for compatibility with LuckPerms, Stylist, etc.
Global Player List Maintains a global player count with heartbeat. Provides /glist command.
Session Lock Prevents concurrent logins by locking player sessions during sync. Players are held in queue until their data is safely transferred.

Security

Feature Default Description
Message Signing ✅ Enabled HMAC-SHA256 prevents message injection attacks
Auto-Generated Secret 32-byte cryptographic secret generated on first run
Replay Prevention 30 sec Messages older than 30 seconds are rejected
Payload Size Limits 64KB Prevents DoS via oversized messages
SSL/TLS Support Optional Encrypt Redis connections

Configuration

Magnus requires a PostgreSQL database and a Redis instance to function.

  1. Generate Config: Start your server once to generate the default configuration file at config/magnus.json.
  2. Edit Config: Stop the server and open config/magnus.json:
{
    "postgresUrl": "jdbc:postgresql://your-db-host:5432/magnus",
    "postgresUser": "your_user",
    "postgresPass": "your_password",
    "redisHost": "your-redis-host",
    "redisPort": 6379,
    "redisPass": null,
    "serverName": "survival",
    "enableInventorySync": true,
    "enableGlobalChat": false,
    "enableGlobalPlayerList": false,
    "enableSessionLock": false,
    "enableMessageSigning": true,
    "messageSigningSecret": "auto-generated-on-first-run",
    "redisSsl": false
}
  1. Launch: Restart your server. Magnus will automatically verify the connection and create the necessary database schema.

[!IMPORTANT] Multi-Server Setup: Copy the messageSigningSecret from the first server to all other servers. All servers must use the same secret.

Configuration Options

Option Default Description
serverName "default" Unique identifier for this server (e.g., "survival", "lobby")
enableInventorySync true Enable inventory/player data synchronization. Disable for lobby servers.
enableGlobalChat false Enable cross-server chat synchronization
enableGlobalPlayerList false Enable global player list and /glist command
enableSessionLock false Enable session locking to prevent concurrent logins
enableMessageSigning true Enable HMAC message signing (recommended)
redisSsl false Enable SSL/TLS for Redis connections

Commands

Command Description
/glist Shows total player count and players grouped by server (requires enableGlobalPlayerList)

Architecture

For detailed flow diagrams and behavior documentation:

open_in_new View on Modrinth
Compatibility
Client: Unknown Server: Unknown
gavel LGPL-3.0-only

Conversation

What are your thoughts?

Related projects

Optimization
Sodium
Sodium

by jellysquid3

The fastest and most compatible rendering optimization mod for Minecraft. Now available for both NeoForge and Fabric!

download 118.2M
favorite 32,788
Decoration Optimization
Iris Shaders
Iris Shaders

by coderbot

A modern shader pack loader for Minecraft intended to be compatible with existing OptiFine shader packs

download 90.5M
favorite 23,773
Optimization Utility
FerriteCore
FerriteCore

by malte0811

Memory usage optimizations

download 84.3M
favorite 12,712
Optimization
Entity Culling
Entity Culling

by tr7zw

Using async path-tracing to hide Block-/Entities that are not visible

download 84.0M
favorite 13,759
lock Cookie consent

SkinMC uses cookies to provide functionality and features.