English | 简体中文
A lightweight authentication mod for offline (cracked) Minecraft servers.
Supports registration, login, inventory protection, brute-force prevention, and auto-login based on IP.
Requires TrueUUID mod as a dependency!
- Register/Login/Change Password — Secure commands for offline players.
- Inventory Protection — Unauthenticated player's inventory is backed up and restored on login.
- Brute-force Protection — Too many failed attempts will lock the account for a configurable period and kick the player.
- IP Auto-login — Players can be automatically logged in within a set time window if they join from the same IP.
- Configurable Messages — All prompts and behaviors can be customized in
config/offlineauth/config.json. - No interference with online (premium) accounts — Only offline UUID players are affected.
- Command
/auth help— View all available commands.
/register <password> <confirm>— Register a new account./login <password>— Login to your account./changepassword <old> <new>— Change your password./auth help— Show help information./auth reload— Reload the configuration file (requires permission level 2).
Edit config/offlineauth/config.json to customize:
timeoutSeconds— Kick unauthenticated players after X seconds.maxFailAttempts— Maximum login/register failures before lock/kick.failLockSeconds— Lockout duration after too many failures.autoLoginEnable— Enable/disable auto-login feature.autoLoginExpireSeconds— Time window for IP-based auto-login.messages— Customize all prompts and warnings.inventoryOnly- Only backup player inventory data during auth.- False (Default) | In this mode all player NBT data is backed up, including mod data like Curios, backpacks, etc.
- True | Only the player inventory data is backed up, this is faster and acceptable for Vanilla servers.
mergeOnRestore- Merge items received while unauthenticated (e.g. Starter Kits) with the restored inventory.- True (Default) | Items are merged. If inventory is full, items are dropped. NOTE: This should always be enabled if
inventoryOnlyis True otherwise dupe glitches are possible. - False | Items received while unauthenticated are discarded.
- True (Default) | Items are merged. If inventory is full, items are dropped. NOTE: This should always be enabled if
- Auto-login (same IP) is convenient, but insecure on public computers/networks. Always warn players to protect their accounts.
- Passwords are securely hashed using PBKDF2 with a random salt and stored under
config/offlineauth/auth_hash.jsonon the server.
- Install TrueUUID mod on your server. (Required!)
- Place the OfflineAuth mod jar in your server's
modsfolder. - Start your server once to generate the config files.
- Edit
config.jsonas needed. - Restart the server.
LGPLv3
YuWan-030
2025