跳到正文

LTS Auth

作者:LTS Team

Add auth for not big servers without hash

收藏

介绍

中文介绍正在准备中,下面暂时显示原文。

LTS Auth Mod

A server-side authentication mod for Minecraft Forge 1.20.1.

Features

  • Simple Authentication: Players can register and login using simple commands.
  • Player Restrictions: Unauthenticated players are frozen in place and cannot interact with the world.
  • Auto-Kick: Players are automatically kicked if they fail to authenticate within 60 seconds.
  • JSON Storage: Player data is stored in a simple JSON file for easy management.
  • Server-Side Only: Clients do not need to install the mod to join the server.

Commands

  • /register <password>: Register a new account.
  • /login <password>: Login to an existing account.

Configuration

The mod stores player data in config/lts_auth/players.json.

{
  "12345678-1234-1234-1234-123456789012": {
    "uuid": "12345678-1234-1234-1234-123456789012",
    "username": "PlayerName",
    "password": "plaintext_password",
    "registeredAt": 1769890665260
  }
}

Messages in config/lts_auth/messages.yml

messages:
  mod_initialized: "&aLTS Auth Mod initialized!"
  register_success: "&aRegistration successful. You are now logged in."
  login_success: "&aLogin successful."
  login_prompt: "&6Please log in using: /login <password>"
  register_prompt: "&6Please register using: /register <password>"
  login_reminder: "&cPlease log in using: /login <password>"
  register_reminder: "&cPlease register using: /register <password>"
  timeout_kick: "Authentication time has expired!"
  already_registered: "&cYou are already registered!"
  password_too_short: "&cPassword must contain at least 4 characters!"
  not_registered: "&cYou are not registered! Use /register <password>"
  already_logged_in: "&cYou are already logged in!"
  invalid_password: "&cInvalid password!"
  storage_load_failed: "Failed to load player data"
  storage_save_failed: "Failed to save player data"

Installation

  1. Download the mod JAR file.
  2. Place it in the mods folder of your Forge 1.20.1 server.
  3. Restart the server.

常见问题

LTS Auth 支持哪些 Minecraft 版本?

LTS Auth 支持 Minecraft Java 版 1.20.1,可用的加载器:Forge。下载时注意选择和你游戏版本一致的文件。

LTS Auth 怎么安装?

先用 PCL2 或 HMCL 启动器安装对应版本的 Forge,再把下载的 .jar 文件放进游戏目录的 mods 文件夹,重新启动游戏即可。开启了版本隔离的,mods 文件夹在 versions/版本名 下面。运行环境:仅服务端。

评论

登录后评论和评分

LTS Team 的其他作品

查看全部 →