Skip to content

AZLogin — Secure Hybrid Authentication ​

AZLogin is a Paper plugin for hybrid authentication: verified premium players can log in automatically, while offline players register and log in with a password.

Supports Paper/Folia 1.21.x through latest (Java 21+ runtime). Requires PacketEvents when premium.verification is packet.

Install ​

  1. Put AZLogin-1.0.3.jar in plugins/.
  2. Install PacketEvents if you use the default packet premium verification.
  3. Start the server once to generate plugins/AZLogin/config.yml.
  4. Set license-key in config.yml (contact AzStudio on Discord) or activate from the server console with /azlogin license activate <key>.
  5. Restart the server.

Authentication modes ​

Set settings.authentication-mode in config.yml:

ModeBehavior
HYBRIDPremium players verify through Mojang; offline players register/login with a password.
OFFLINE_ONLYEvery player uses password registration/login.
PREMIUM_ONLYOnly verified premium players may join.

Premium ​

Premium support lets verified Java premium players auto-login, while keeping offline authentication available.

Features ​

  • Auto-login: verified premium players are authenticated automatically.
  • AZLicense-gated: premium authentication requires a valid AZLogin license; if invalid/unlicensed, offline auth still works.
  • Packet mode: standalone Mojang handshake interception via PacketEvents (default).
  • Premium linking: offline players can self-link to a premium Minecraft account with /premium confirm.
  • Safety: premium verification uses Mojang checks; offline same-name cracked clients are challenged securely.

How it works (step by step) ​

  1. Player joins the server.
  2. AZLogin checks the account/premium path based on premium.verification.
  3. In packet mode, AZLogin uses PacketEvents to run Mojang handshake verification for premium candidates.
  4. If verified premium: AZLogin authenticates the player automatically and shows premium feedback.
  5. If not premium/offline flow: the player uses normal offline auth (/register or /login) depending on account state.

Premium linking (offline → premium) ​

  1. Log in with your offline AZLogin account.
  2. Run /premium confirm.
  3. Reconnect within 10 minutes using your premium Minecraft client.
  4. AZLogin verifies the premium session and converts the account to premium.
  5. Use /premium status to check your current state.

Verification modes ​

ModeUse
packet (default)Standalone Mojang handshake interception via PacketEvents.
forwardedTrust proxy-forwarded premium UUIDs (Velocity/Bungee proxy setups). Not tested.
noneDisable premium verification.

Packet mode notes:

  • Requires PacketEvents.
  • Known PREMIUM accounts are intercepted for Mojang hasJoined verification.
  • Unknown names are probed via Mojang profile lookup; if a premium profile exists, AZLogin attempts handshake, otherwise it resumes offline flow.
  • Offline same-name-as-premium cracked clients are challenged securely; the Minecraft client may show an ugly auth error.

Bedrock ​

Bedrock v1 support lets Geyser/Floodgate Bedrock players authenticate cleanly without being misclassified as Java premium.

Features ​

  • Floodgate-verified detection: only treats players as Bedrock when Floodgate confirms them.
  • Auto-login: verified Bedrock players can be authenticated automatically.
  • Skip register: optional automatic account creation for Bedrock auto-login.
  • Safe by default: bedrock.enabled defaults to false.
  • No premium confusion: Bedrock players are not treated as Java Mojang premium accounts.

How it works (step by step) ​

  1. Install and run Floodgate (Geyser+Floodgate setup).
  2. Set bedrock.enabled: true in plugins/AZLogin/config.yml.
  3. Keep bedrock.auto-login: true if you want Bedrock players to log in automatically.
  4. Bedrock player joins through Geyser/Floodgate.
  5. AZLogin checks Floodgate: if verified Bedrock, it skips the Java premium handshake path.
  6. If auto-login enabled: AZLogin creates/finds a BEDROCK account and authenticates the player automatically.
  7. If Floodgate is missing: Bedrock auto-login is disabled and AZLogin logs a warning.

Config ​

yaml
bedrock:
  enabled: false
  auto-login: true
  skip-register: true

Commands ​

Player commands:

CommandDescription
/register <password> <confirmPassword>Register an offline account.
/login <password>Log in to an offline account.
/logoutEnd your AZLogin session.
/changepassword <old> <new>Change your password.
`/premium [confirmstatus]`

Admin commands are console-only (run from the server console). /azlogin support is available to everyone.

CommandAccessDescription
/azlogin helpEveryoneShow available AZLogin commands.
/azlogin infoConsoleShow plugin version, mode, premium auth state, and support.
/azlogin statusConsoleShow live runtime status (license, key, verification, accounts, sessions).
/azlogin supportEveryonePrint the support Discord invite.
/azlogin license statusConsoleShow license status and entitlements.
/azlogin license infoConsoleShow license plan/timestamps.
/azlogin license activate <key>ConsoleActivate a license key.
/azlogin license deactivateConsoleDeactivate license locally.
/azlogin forceregister <username> <password>ConsoleForce-register an offline account.
/azlogin unregister <username> confirmConsoleRemove an account (requires confirmation).
/azlogin reset <username>ConsoleRevoke sessions and clear login attempts.
/azlogin forcepremium <username> <premium-uuid>ConsoleConvert/create a premium account (admin override).
`/azlogin lang <codelist>`Console
/azlogin migrate request <source-uuid> <destination-uuid>ConsoleRequest an account migration.
/azlogin migrate approve <id>ConsoleApprove a migration request.
/azlogin migrate complete <id>ConsoleMark a migration complete.
/azlogin migrate statusConsoleList migrations.
/azlogin migrate backup <id>ConsoleCreate a JSON backup for a migration.
/azlogin migrate restore <backup-file>ConsoleRestore a migration backup from plugins/AZLogin/backups/.
/azlogin audit [limit]ConsoleShow recent audit log events.

Security and feedback ​

  • Unauthenticated players see an action bar countdown and are kicked after security.login-timeout-seconds.
  • Failed logins use exponential cooldown backoff (capped) and show remaining seconds. Repeated brute-force kick events can lead to a temporary IP ban.
  • Successful register shows REGISTERED, login shows LOGGED IN, and premium auto-login shows PREMIUM with title/fireworks feedback.
  • Sensitive auth command arguments (/login, /register, /changepassword) are redacted in console/log output.

Discord alerts ​

Set alerts.discord-webhook to a Discord webhook URL to receive security alerts. Categories can be toggled under alerts.events:

CategoryEvents
brute-forceBrute-force lockouts and temporary IP bans.
adminAdmin actions such as reset, unregister, and forcepremium.
migrationMigration backup, restore, and complete actions.
licenseLicense status changes and recoveries.

Language ​

AZLogin ships with bundled locales: en, es, ru, fr, pt, pl, tr, id, it, ja.

  • settings.language sets the server default language.
  • Player messages auto-detect the player's client locale when a matching bundled locale exists, with fallback to the server default.
  • Console admins can change the default language at runtime with /azlogin lang <code|list>.

Permissions ​

PermissionDefaultDescription
azlogin.reloadopReload AZLogin configuration (reserved).

Admin /azlogin commands are console-only; /azlogin support remains available to everyone.

Config ​

plugins/AZLogin/config.yml:

yaml
#contact AzStudio on discord
license-key: ""

settings:
  # HYBRID | OFFLINE_ONLY | PREMIUM_ONLY
  authentication-mode: HYBRID
  # en | es | ru | fr | pt | pl | tr | id | it | ja
  language: en

premium:
  # packet (default) | forwarded | none
  verification: packet

bedrock:
  enabled: false
  auto-login: true
  skip-register: true

security:
  password:
    min-length: 8
    max-length: 64
  max-login-attempts: 5
  login-timeout-seconds: 60
  login-cooldown-seconds: 30
  session-enabled: true
  session-duration-hours: 24

offline:
  max-accounts-per-ip: 3

database:
  type: SQLITE # SQLITE | MYSQL

  sqlite:
    file: accounts.db

  mysql:
    host: localhost
    port: 3306
    database: azlogin
    username: ""
    password: ""
    pool-size: 6

alerts:
  discord-webhook: ""
  events:
    brute-force: true
    admin: true
    migration: true
    license: true

metrics:
  enabled: true

License ​

AZLogin validates through the shared suite license client (product: AZLogin, type: plugin). Premium features are gated by the license; offline authentication remains available.

Test server ​

You can test AZLogin on the AzStudio test server:

  • IP: azstudio.mcsh.gg

Support ​

Support Discord: https://discord.gg/MwjpYSA5jg

Released under the AzStudio license. All products are available on BuiltByBit and Modrinth.