Project icon hlAuth
hlAuth

A full-fledged authorization plugin for Hytale servers.

12
2
2 months ago
Game MechanicsManagementUtilityTechnology

1.0.1

Release
hlAuth 1.0.14 months ago0

Compatibility

Hytale versions

0.5.x

Changes

hlAuth 1.0.1

Authentication for Hytale with native UI. This update adds optional 2FA, SQL storage, and account backups.

Two-factor authentication

  • Optional TOTP (Google Authenticator, Aegis, 2FAS). Off by default (twoFactorEnabled).
  • Scan a QR code or enter the secret key, then confirm with a 6-digit code.
  • One-time recovery codes after setup (screenshot them — they are shown once).
  • Cancel on the setup and verify screens.
  • Optional: require 2FA after login (twoFactorRequired), including session auto-login (twoFactorRequiredOnSession).
  • Commands: /2fa, /2fa <code>, /2fa recover <code>, /2fa disable <code>, /2fa done.
  • Admin: /hlauth 2fareset .

Storage

  • json (default), embedded H2, or MySQL (storageType).
  • Switching from JSON to H2/MySQL imports existing accounts if the table is empty.
  • databaseJdbcUrl for remote MySQL or H2 TCP.
  • Storage type changes need a server restart, not /hlauth reload.

Backups

  • /hlauth backup writes a JSON snapshot of all accounts.
  • Optional auto-backups: backupEnabled, backupIntervalHours / backupIntervalMinutes, backupKeepCount.
  • Files: mods/HytaleNet_hlAuth/backups/hlauth-YYYY-MM-DD_HH-mm-ss.json.

Fixes & polish

  • Login/register password fields are masked.
  • Limbo blocks more actions (break/place/pickup/drop) until the player is authenticated.
  • Crash on plugin load when limbo cancel systems were registered more than once.
  • Password fields and 2FA UI follow vanilla Hytale page style.

config.json stays compatible — new keys are added on reload. accounts.json is unchanged in JSON mode.

Copy hlAuth-1.0.1.jar into mods/ and restart the server.

Creators

Details

License
Created
Updated
ID
aCbZ8g