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
- Put
AZLogin-1.0.3.jarinplugins/. - Install PacketEvents if you use the default
packetpremium verification. - Start the server once to generate
plugins/AZLogin/config.yml. - Set
license-keyinconfig.yml(contact AzStudio on Discord) or activate from the server console with/azlogin license activate <key>. - Restart the server.
Authentication modes
Set settings.authentication-mode in config.yml:
| Mode | Behavior |
|---|---|
HYBRID | Premium players verify through Mojang; offline players register/login with a password. |
OFFLINE_ONLY | Every player uses password registration/login. |
PREMIUM_ONLY | Only 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)
- Player joins the server.
- AZLogin checks the account/premium path based on
premium.verification. - In
packetmode, AZLogin uses PacketEvents to run Mojang handshake verification for premium candidates. - If verified premium: AZLogin authenticates the player automatically and shows premium feedback.
- If not premium/offline flow: the player uses normal offline auth (
/registeror/login) depending on account state.
Premium linking (offline → premium)
- Log in with your offline AZLogin account.
- Run
/premium confirm. - Reconnect within 10 minutes using your premium Minecraft client.
- AZLogin verifies the premium session and converts the account to premium.
- Use
/premium statusto check your current state.
Verification modes
| Mode | Use |
|---|---|
packet (default) | Standalone Mojang handshake interception via PacketEvents. |
forwarded | Trust proxy-forwarded premium UUIDs (Velocity/Bungee proxy setups). Not tested. |
none | Disable premium verification. |
Packet mode notes:
- Requires PacketEvents.
- Known PREMIUM accounts are intercepted for Mojang
hasJoinedverification. - 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.enableddefaults tofalse. - No premium confusion: Bedrock players are not treated as Java Mojang premium accounts.
How it works (step by step)
- Install and run Floodgate (Geyser+Floodgate setup).
- Set
bedrock.enabled: trueinplugins/AZLogin/config.yml. - Keep
bedrock.auto-login: trueif you want Bedrock players to log in automatically. - Bedrock player joins through Geyser/Floodgate.
- AZLogin checks Floodgate: if verified Bedrock, it skips the Java premium handshake path.
- If auto-login enabled: AZLogin creates/finds a
BEDROCKaccount and authenticates the player automatically. - If Floodgate is missing: Bedrock auto-login is disabled and AZLogin logs a warning.
Config
bedrock:
enabled: false
auto-login: true
skip-register: trueCommands
Player commands:
| Command | Description |
|---|---|
/register <password> <confirmPassword> | Register an offline account. |
/login <password> | Log in to an offline account. |
/logout | End your AZLogin session. |
/changepassword <old> <new> | Change your password. |
| `/premium [confirm | status]` |
Admin commands are console-only (run from the server console). /azlogin support is available to everyone.
| Command | Access | Description |
|---|---|---|
/azlogin help | Everyone | Show available AZLogin commands. |
/azlogin info | Console | Show plugin version, mode, premium auth state, and support. |
/azlogin status | Console | Show live runtime status (license, key, verification, accounts, sessions). |
/azlogin support | Everyone | Print the support Discord invite. |
/azlogin license status | Console | Show license status and entitlements. |
/azlogin license info | Console | Show license plan/timestamps. |
/azlogin license activate <key> | Console | Activate a license key. |
/azlogin license deactivate | Console | Deactivate license locally. |
/azlogin forceregister <username> <password> | Console | Force-register an offline account. |
/azlogin unregister <username> confirm | Console | Remove an account (requires confirmation). |
/azlogin reset <username> | Console | Revoke sessions and clear login attempts. |
/azlogin forcepremium <username> <premium-uuid> | Console | Convert/create a premium account (admin override). |
| `/azlogin lang <code | list>` | Console |
/azlogin migrate request <source-uuid> <destination-uuid> | Console | Request an account migration. |
/azlogin migrate approve <id> | Console | Approve a migration request. |
/azlogin migrate complete <id> | Console | Mark a migration complete. |
/azlogin migrate status | Console | List migrations. |
/azlogin migrate backup <id> | Console | Create a JSON backup for a migration. |
/azlogin migrate restore <backup-file> | Console | Restore a migration backup from plugins/AZLogin/backups/. |
/azlogin audit [limit] | Console | Show 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 showsLOGGED IN, and premium auto-login showsPREMIUMwith 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:
| Category | Events |
|---|---|
brute-force | Brute-force lockouts and temporary IP bans. |
admin | Admin actions such as reset, unregister, and forcepremium. |
migration | Migration backup, restore, and complete actions. |
license | License status changes and recoveries. |
Language
AZLogin ships with bundled locales: en, es, ru, fr, pt, pl, tr, id, it, ja.
settings.languagesets 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
| Permission | Default | Description |
|---|---|---|
azlogin.reload | op | Reload AZLogin configuration (reserved). |
Admin /azlogin commands are console-only; /azlogin support remains available to everyone.
Config
plugins/AZLogin/config.yml:
#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: trueLicense
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
