Modscraper Modscraper Minecraft
Combat Persistence logo

Combat Persistence

Mod

Server-side Fabric combat logging protection for PvP and SMP: offline NPCs, inventory recovery, combat command blocking and optional offline-mode login.

Type

Mod

Modrinth Downloads

583

Modrinth ID

Q56AIoib

Last Updated

Nov 6, 2026

Description

Combat Persistence

Combat logging protection for Fabric PvP and SMP servers. No client mod required.

When a tagged player disconnects, Combat Persistence leaves a vulnerable mannequin at their location for the remaining combat tag. Opponents can finish the fight. If the mannequin dies, its inventory drops and the player dies when they return.

Combat logging protection

  • PvP combat tags: configurable duration, with remaining time in the action bar.
  • Offline mannequins: copy the player's equipment and available skin while the combat tag remains active.
  • Inventory recovery: disk snapshots retain inventory, equipment, cursor items and owned vanilla menu inputs for the next login if the mannequin disappears during a restart or chunk unload. Result previews and shared containers stay excluded.
  • Offline death: committing a death record prevents the same tracked inventory from being released again.
  • Combat command blocking: configure commands such as /home, /spawn and /tp. Add aliases used by your server.
  • Optional ender chest restriction: disable ender chests server-wide for arena or SMP rules.

The mannequin entity itself is not saved in chunks. Inventory recovery persists separately. Restarting the server does not recreate the offline fight.

Optional offline-mode authentication

Online-mode servers use Minecraft account verification. The built-in password flow applies to offline-mode servers when enabled.

  • BCrypt password hashes, with bounded password verification work.
  • Inventory, position and last-death coordinates hidden before initial play packets when their protection settings are enabled.
  • Authentication tied to the current connection.
  • Duplicate UUID and case-insensitive name checks that reject the newcomer before replacing an existing connection.
  • Login timeout, failed-attempt lockout and an operator account reset command.
  • IP autologin disabled by default.

Use online mode for public servers where possible. This mod does not encrypt offline-mode network traffic. Password commands require an independently secured connection; never reuse an important password. First registration of an offline name does not prove ownership. Whitelist existing players and arrange registration with them.

Installation

  1. Use a dedicated Minecraft 26.3 server with Java 25 or later.
  2. Install Fabric Loader 0.20.1 or later and the Fabric API build for Minecraft 26.3.
  3. Download the Combat Persistence version marked for 26.3 and put its JAR in the server's mods folder.
  4. Start the server, then configure config/combatpersistence.json.
  5. Test combat logout, reconnect and recovery on a disposable world before using your existing world.

Players need no client installation. Use the version selector for older Minecraft releases; compatibility labels apply to each uploaded version.

Useful settings

Setting Default Purpose
combatTagDurationSeconds 15 Time before a combat tag expires.
blockedCommands See generated config Commands refused during combat.
disableEnderChests false Disable ender chests server-wide.
enableAuth true Enable the built-in offline-mode password flow.
forceAuthInOfflineMode true Require the password flow in offline mode.
enableIpAutoLogin false Allow password-free login from a matching recent address. Keep disabled for stronger protection.
hideInventoryBeforeAuth true Hide inventory before login.
hideCoordinatesBeforeAuth true Hide position and last-death coordinates before login.
enableSkinLookups false Opt in to external Mojang skin requests.

External skin requests disclose the requested name or UUID and the server's IP to Mojang. Clients may fetch the returned textures. This setting does not control requests made by Minecraft or other mods.

Commands

Command Purpose
/register <password> <confirmPassword> Register an offline-mode account.
/login <password> Authenticate the current connection.
/skin <name> Request a Mojang skin when external lookups are enabled.
/authreset <player> Operator: reset an account for coordinated registration.

Recovery and compatibility

Back up the world and player data together with the mod's authentication and recovery JSON files. Restrict access: these files contain password hashes, inventory contents and coordinates.

Recovery prevents repeated inventory releases where possible. A crash between committing a death and saving dropped world items can still lose loot. No transaction spans all player files, recovery files and world chunks. Custom inventories, proxy authentication and other mods' packets need separate compatibility testing.

See the configuration and security notes and security review for scope and limitations.

Support development

Report reproducible bugs with your Minecraft version, mod version and relevant server log. Remove passwords, addresses and player data before sharing logs.

Report an issue · Source code · Support on Ko-fi

Compatibility

Mod Loaders

Fabric

Game Versions

26.1 26.2 26.3

Recommended Gear

Affiliate

Hardware and extras that pair well with this mod.

As an Amazon Associate I earn from qualifying purchases.

Similar Mods

External Resources