HomeJavaModsServerOfflineAuth
ServerOfflineAuth

ServerOfflineAuth

Introduction


Provides password authentication for offline players on the server.

Features

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 = ""
        

Player Commands

Admin Commands

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

Quick facts

Install steps are the general flow for this file type — How to install Minecraft Java mods & modpacks walks through it step by step.

Verified by MCModsHub

These come from our own check of the pack file, not from the source page.

Explore more