hlAuth

A full-fledged authorization plugin for Hytale servers. Support Discord/Telegram/TOTP/Offline Accounts
Back to Files

hlAuth-1.1.0

File namehlAuth-1.1.0-bundled.jar
Uploader
ChernyashChernyash
Uploaded
Aug 24, 2026
Downloads
26
Size
19.0 MB
File ID
8723362
Type
R
Release
Supported game versions
  • 0.6

What's new

## hlAuth 1.1.0 Authentication for Hytale with native UI. This update adds Telegram/Discord login confirmation, YAML configs, bcrypt password hashing, GeoIP, and keeps the world thread from freezing on bot HTTP. ### Telegram & Discord * Link an account from the game: `/link telegram`, `/link discord`, then send the code to the bot (`/link confirm `). Unlink with `/unlink telegram` / `/unlink discord`. * Login confirmation in the bot: password + confirm, or confirm-only. The player can switch later in bot settings. * Linking a messenger turns off TOTP 2FA for that account and moves confirmation to the bot. * Bot menu: status, password reset, kick, block/unblock, unlink, notifications / 2FA / sessions. * Telegram: reply-keyboard menu, Allow/Deny on login confirm, optional HTTP/SOCKS proxy in `telegram-bot.yml`. * Discord: embeds, slash commands (`/menu`, `/status`, `/resetpassword`, `/settings`, `/block`, `/unlink`, `/kick`, `/help`), presence/activity, embed color, custom menu text in `discord-bot.yml`. Optional HTTP proxy (needed where Discord is blocked; use your local xray/sing-box mixed port). * Help button replies with a short “Help” / “Помощь” and a link button. `helpUrl` in both bot yml files (default `https://hlauncher.com`). Discord also shows the link on the main menu. * Admin: `/hlauth unlink telegram|discord`. ### Passwords * New hashes are bcrypt. On first start, `bcryptCost: 0` runs a short benchmark and stores the highest cost (10–14) that stays under `bcryptTargetMs` (default 250 ms). * Leftover PBKDF2 hashes from older hlAuth builds are rewritten to bcrypt on the next successful login. * Minecraft `$SHA$` import is gone — this is a Hytale plugin. * Forbidden passwords live in `unsafePasswords.txt` (one per line, case-insensitive). ### Config & storage * YAML: `config.yml`, `telegram-bot.yml`, `discord-bot.yml`. Old JSON files are migrated once. * Default language is English (`language: "en"`). RU is still bundled. * Storage: embedded H2 (default), SQLite, or MySQL. JDBC drivers download into `lib/` on first start. `storageType: json` is rewritten to `h2`; leftover `accounts.json` is imported if the SQL table is empty. * Commands after register/login: `registerCommands` / `loginCommands` with `[CONSOLE]`, `[PLAYER]`, `[WAIT]` and `{nick}`. * `/hlauth ipcheck` — UI of masked IPs and accounts that share them. GeoLite2 City + ASN download into `geoip/` in the background. ### Fixes * World thread freeze on login: Telegram/Discord HTTP no longer runs on the game tick. A Telegram timeout used to stall the world for ~10s (`Task took 10sec`). * Bot HTTP uses `Proxy.NO_PROXY` unless a proxy is set in the bot yml, so a system/VPN SOCKS (`SocksSocketImpl`) cannot hang the server. * Discord gateway race: IDENTIFY was dropped because HELLO arrived before the socket was assigned — the bot never reached READY. * Discord 2FA / menu buttons stayed clickable after a decision; the first click wins and buttons are removed. * Account block from the bot only kicked the current session; a blocked player can no longer rejoin. * `/link telegram` no longer needs `--service=` — real subcommands, same style as `/hlauth`. * Telegram messages showed literal `\n` instead of line breaks. * GeoIP download no longer blocks plugin start. City and ASN load independently.

This mod has no additional files