Skip to content

ServerOfflineAuth

Provide password verification functionality for offline players on the server.

Forge
Loaders
Forge
Downloads on Modrinth
1.2K
Followers on Modrinth
1
versions
4
Updated
April 24, 2026Apr 24
Published
in 2026

At a glance

Runs on Forge
For Minecraft 1.20.1–1.20.6
Server only — players don't need to install it
Latest version — 0.2.0-beta-1.20.1-forge from April 24, 2026
License MIT — free
Where it's needed
In gamenot neededOn serverrequired

Install on the server only; players don't need it

Game versions1.20.1–1.20.6

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 ` Register
  • `/login ` 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

FAQ

How to install ServerOfflineAuth?

Install Forge for your Minecraft version, download ServerOfflineAuth for the same version and loader, put the file into the mods folder and launch the game with the loader profile.

Which Minecraft versions does ServerOfflineAuth support?

ServerOfflineAuth has builds for Minecraft 1.20.1–1.20.6.

Is ServerOfflineAuth needed on the server?

Server only — players don't need to install it

License and source
MIT Licensefree to use and share with credit to the author
Original — Modrinth↗Files unchanged, verified with SHA-512Is this your mod? For rights holders

The site uses cookies: the necessary ones for sign-in and the theme, plus the Yandex Metrica and LiveInternet visit counters — they show us how the site is used. We have no advertising cookies. More