Combat Persistence

Combat Persistence

A server-side Fabric mod that prevents combat logging with persistent NPCs, featuring a secure authentication system and custom skin support for offline servers.

by
63 Downloads
fabricmanagementutility
Rent Server with this Mod

About this Mod

Combat Persistence

Combat Persistence is a server-side Fabric mod designed for competitive Minecraft servers. It prevents "combat logging" by spawning a vulnerable NPC whenever a player disconnects while in combat, ensuring that players cannot evade death by simply closing the game.

Key Features

  • Smart Combat Tagging: Monitors player interactions and tags those in combat. Configurable duration and action bar feedback.
  • Persistent NPCs: disconnects while tagged spawn a Mannequin NPC at the player's exact spot.
    • NPCs mirror the player's visual appearance (Armor, Skins, Held Items).
    • NPCs are backed by NBT data, meaning they survive chunk unloads and server restarts.
  • Reliable Offline Deaths: If your NPC is killed while you are offline, you will find yourself at the death screen upon rejoining. No "ghost items" or survival glitches.
  • Advanced Dupe Protection: Rigorously tested logic that clears both the inventory and the cursor stack (carried items) immediately on disconnect to eliminate duplication exploits.
  • Built-in Secure Authentication:
    • Session Management: Remembers your login state (24-hour session for cracked, 30 days for premium).
    • Premium Verification: Use /premium to link your account to Mojang's official servers for enhanced security and convenience.
    • Safe Limbo: Teleports unauthenticated players to a lobby and hides their coordinates to prevent world-leaking.
  • Command Blocking: Prevent players from running /tp, /home, or /spawn to escape a fight.
  • No Client Needed: This is a 100% server-side mod. Your players don't need to install anything!

Configuration

All settings can be customized in config/combatpersistence.json:

Combat Settings

  • combatTagDurationSeconds: (Default: 15) Customize the length of the tag.
  • blockedCommands: Add your own custom commands to the blacklist (e.g., /spawn, /home).
  • npcNamePrefix: (Default: §7[OFFLINE] §f) Change how offline players are labeled in-game.
  • playSpawnSound: (Default: true) Plays a thunder sound when an NPC spawns.

Authentication Settings

  • enableAuth: (Default: true) Toggle the entire authentication system on or off.
  • forceAuthInOfflineMode: (Default: true) Requires authentication even if the server is in offline mode.
  • sessionDurationHours: (Default: 24) How long an autologin session lasts.
  • lobbyDimension: (Default: overworld) The dimension where unauthenticated players are held.

Requirements

  • Fabric Loader
  • Fabric API
  • Minecraft 26.1+
  • Java 25+

Support

If you find this mod useful, you can support development here:
ko-fi.com/pottersgame

Why Combat Persistence?

Unlike many other combat-log solutions, Combat Persistence is built with an exploit-first mindset. We have manually patched duplication glitches involving cursor stacks, inventory ghosting, and authentication bypasses that plague other similar mods.


Source Code | Issue Tracker | GPL-3.0 License

Available Versions

Combat Persistence 1.2.0release
MC 26.1fabric
March 26, 2026

How to Install Combat Persistence on Your Server

1

Order Server

Order a Minecraft Java server with at least 3 GB RAM (4 GB recommended).

2

Set fabric Loader

In the panel under "Egg", select the fabric loader and matching Minecraft version (26.1).

3

Install Mod

Open the mod browser in the dashboard and search for "Combat Persistence". Click "Install" – done! Alternatively, upload the .jar via SFTP to the /mods folder.

Compatibility

Mod Loaders

fabric

Minecraft Versions

26.1

Server-side

Required

Recommended RAM

4 GB(min. 3 GB)

Frequently Asked Questions

Combat 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 (26.1). You can switch loaders with one click in the panel.

Is Combat Persistence compatible with fabric?

Combat Persistence officially supports fabric for Minecraft 26.1. The Mado dashboard automatically detects incompatible loader combinations.

Server lagging with Combat Persistence – how to optimize performance?

Recommended RAM: 4 GB (per 8 players). Use /spark profiler to check if Combat 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.

Rent Modded Server

Install Combat Persistence with just one click on your server.

Recommended RAM
4 GBab €8/mo
Min. 3 GB | +1 GB pro 8 Spieler
Create Server Now
1-Click Mod Install
NVMe SSD Storage
DDoS Protection included

Details

License
GNU General Public License v3.0 only
Server-side
Required

Supported Versions

26.1