
Player Persistence
!API MOD! Additional Code required A simple library that allows to sync player data such as inventories, ender chests and locations between multiple servers
About this Mod
Player Persistence Mod
WARNING: This mod is an API, it requires a functioning PostgreSQL Server and additional code to function! It does not work as standalone!
Overview: The Player Persistence mod is a lightweight library designed for Minecraft server developers who want to provide a seamless, persistent experience for players across server restarts and world transitions. This mod handles the automatic saving and loading of player inventory, Ender Chest contents, and positional data to a database, ensuring that players' states are preserved accurately.
Key Features:
Optimized for Docker and Kubernetes Deployments: Change which DB to use with what user simply by setting the enviroment variables DB_URL DB_USER DB_PASS. To sync coordinates across multiple ServerTypes set the SERVER_NODE variable to the name of your Server.
Inventory Persistence: Automatically save and load player inventories, including armor and off-hand items, to a database. This ensures that player items are consistent and safe across server sessions.
Ender Chest Persistence: Similar to inventory persistence, this feature saves and loads the contents of players' Ender Chests, making sure that these valuable items are not lost.
Player Position Syncing: Maintain the exact player position and dimension data across server restarts or even cross-server transitions, allowing players to continue their journey exactly where they left off.
PostgreSQL Database Integration: The mod is built to work with PostgreSQL databases, making it ideal for large server networks or custom server setups that require persistent data storage.
Usage
This mod is intended as a backend library for server developers and does not add any direct gameplay features. To use the mod, simply integrate it into your server's mod setup, configure the database connection, and let the mod handle player data persistence automatically.
Compatibility
The mod is designed to work with Fabric API and is compatible with the latest version of Minecraft. It is also modular and can be customized or extended by developers to fit specific server needs.
How-To-Use
- Add the dependency to your project:
modApi("maven.modrinth:player-persistence:VERSION")?.let { include(it)} - Create a PlayerPersistence Object e.g
var pp = PlayerPersistence() - Use the methods as needed
Missing something?
If you're missing some feature please open a issue on GitHub and we'll see to it.
Available Versions
How to Install Player Persistence on Your Server
Order Server
Order a Minecraft Java server with at least 3 GB RAM (4 GB recommended).
Set fabric Loader
In the panel under "Egg", select the fabric loader and matching Minecraft version (1.21.5).
Install Mod
Open the mod browser in the dashboard and search for "Player Persistence". Click "Install" – done! Alternatively, upload the .jar via SFTP to the /mods folder.
Compatibility
Mod Loaders
Minecraft Versions
1.21.5, 1.21.4, 1.21.1
Server-side
✓ RequiredRecommended RAM
4 GB(min. 3 GB)Frequently Asked Questions
Player Persistence server crashes on startup – what to do?
Most common cause: wrong fabric version or insufficient RAM. Check the server log (latest.log) for "OutOfMemoryError" or "Mixin" errors. With Mado Hosting: ensure at least 3 GB RAM is allocated and the loader matches the mod version (1.21.5). You can switch loaders with one click in the panel.
Is Player Persistence compatible with fabric and quilt?
Player Persistence officially supports fabric, quilt for Minecraft 1.21.5, 1.21.4, 1.21.1. The Mado dashboard automatically detects incompatible loader combinations.
Server lagging with Player Persistence – how to optimize performance?
Recommended RAM: 4 GB (per 8 players). Use /spark profiler to check if Player Persistence consumes the most tick time. Common fixes: reduce server view-distance to 8-10, install "performant" or "starlight" as supplementary mods on Forge. With Mado Hosting, your server runs on NVMe SSDs with dedicated CPU cores for minimal latency.
Similar Mods
Rent Modded Server
Install Player Persistence with just one click on your server.