ServerOfflineAuth

ServerOfflineAuth

Provide password verification functionality for offline players on the server.

by
385 Downloads
forgemanagementsocial
Rent Server with this Mod

About this Mod

ServerOfflineAuth

Introduction


Provides password authentication for offline players on the server.

Features

  • Built-in encrypted data storage
  • Json and MySQL support
  • Token verification password-free login
  • The server-side tokens are stored in the server_offline_auth_tokens.json file under the config/ folder.

Configuration

When ServerOfflineAuth is first started, it creates the server_offline_auth-common.toml file in the config/ directory with the following content:


#Server Offline Auth Configuration
[general]
    #Login timeout (seconds), set to 0 to disable
    #Range: 0 ~ 3600
    loginTimeout = 30
    #Salt length (log rounds). Default 10, range 4-30.
    #Range: 4 ~ 30
    passwordHashWorkFactor = 10
    #Player data file name (only effective when storage type is json)
    dataFileName = "server_offline_auth_data.json"
    #Whether to send a prompt when a player joins
    joinMessageEnabled = true

[storage]
    #Data storage type: json or mysql
    storageType = "json"
    #MySQL host address
    mysqlHost = "localhost"
    #MySQL port
    #Range: 1 ~ 65535
    mysqlPort = 3306
    #MySQL database name
    mysqlDatabase = "ServerOfflineAuth"
    #MySQL username
    mysqlUsername = "root"
    #MySQL password
    mysqlPassword = "password"
    #MySQL table name
    mysqlTable = "auth_players"
    #Token validity days (0 means never expires)
    #Range: 0 ~ 3650
    tokenExpiryDays = 3

[storage.migration]
    #Set this to perform data migration (e.g., "mysql" or "json"). After successful migration, this value will be automatically cleared, and storageType will be updated.
    migrateTo = ""
        
  • If the data storage mode is JSON, a file named server_offline_auth_data.json will be created in the server root directory to store player data.
  • If the data storage mode is MySQL, you need to ensure that the MySQL server is properly configured and running, and that the provided connection information is correct.

Player Commands

  • /register <passwd> <passwd> Register
  • /login <passwd> Login
  • /logout Logout

Admin Commands

  • /serverofflineauth admin login <player_ID> Force login
  • /serverofflineauth admin logout <player_ID> Force logout

Requirements


Server Requirements

This mod is developed based on Minecraft Forge 1.20.1; its effectiveness on other versions has not been verified.

Precautions


This mod is in an early testing stage, with more features under development. Do not use test versions in important environments.

If you encounter bugs during use, please submit an issue on GitHub.

Contributors


Team Members: ttwlwlbb51522, ChaosException, Archiveorigin

Available Versions

ServerOfflineAuth 0.2.0-beta-1.20.1-forgebeta
MC 1.20.1, 1.20.2, 1.20.3, 1.20.4, 1.20.5, 1.20.6forge
April 24, 2026
ServerOfflineAuth 0.1.0beta-1.20.1-forgebeta
MC 1.20.1, 1.20.2, 1.20.3, 1.20.4, 1.20.5, 1.20.6forge
March 13, 2026
ServerOfflineAuth 0.0.1-1.20.1-betabeta
MC 1.20.1, 1.20.2, 1.20.3, 1.20.4, 1.20.5, 1.20.6forge
March 4, 2026
ServerOfflineAuth 0.0.1-1.20.1-alphaalpha
MC 1.20.1, 1.20.2, 1.20.3, 1.20.4, 1.20.5, 1.20.6forge
March 4, 2026

How to Install ServerOfflineAuth on Your Server

1

Order Server

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

2

Set forge Loader

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

3

Install Mod

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

Compatibility

Mod Loaders

forge

Minecraft Versions

1.20.6, 1.20.5, 1.20.4 (+3 more)

Server-side

Required

Recommended RAM

4 GB(min. 3 GB)

Frequently Asked Questions

ServerOfflineAuth server crashes on startup – what to do?

Most common cause: wrong forge 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.20.6). You can switch loaders with one click in the panel.

Is ServerOfflineAuth compatible with forge?

ServerOfflineAuth officially supports forge for Minecraft 1.20.6, 1.20.5, 1.20.4. The Mado dashboard automatically detects incompatible loader combinations.

Server lagging with ServerOfflineAuth – how to optimize performance?

Recommended RAM: 4 GB (per 8 players). Use /spark profiler to check if ServerOfflineAuth 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 ServerOfflineAuth 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
MIT License
Server-side
Required

Supported Versions

1.20.61.20.51.20.41.20.31.20.21.20.1