BeerAuth

Experimental BeerAuth 1.0.1

Compatible API Versions
1.0.1
Contributors
Frost, Makapov
⚡ Features
  • ✅ Auto Session Login - Remember players by IP
  • ✅ IP Account Limitation - Prevent spam registrations
  • ✅ Discord Integration - Link accounts & recovery system Experimental
  • ✅ Form-Based UI - Easy-to-use forms for players
  • ✅ Auto Logout - Kick inactive players
  • ✅ Password Recovery - Via Discord DMs Experimental
Config: Maybe some text was moved, check generated config
YAML:
# BeerAuth Configuration

# Registration settings
registration:
  minPasswordLength: 6
  maxPasswordLength: 32
  maxAccountsPerIp: 3
  maxAccountsMessage: "&cAccount limit exceeded from your IP address"

# Session settings
session:
  sessionDuration: 1440

# Auto logout settings
autoLogout:
  inactiveTime: 5
  message: "&cYou were disconnected due to inactivity"

# Discord Bot settings
discord:
  botToken: "YOUR_BOT_TOKEN_HERE"
  recoveryMessage: |
🔐 **BeerAuth Account Recovery**

Your recovery code is: `{code}`
Minecraft username: `{minecraft_username}`

This code will expire in 5 minutes.

If you didn't request this code, please ignore this message.
linkedMessage: |
✅ **Account Linked Successfully**

Your Discord account has been linked to Minecraft account: **{minecraft_username}**

**Available Commands:**
`/recovery` - Generate account recovery code
`/status` - Check your account status
`/help` - Show help message

# Messages
messages:
loginSuccess: "&aYou have successfully logged in!"
  loginFailed: "&cInvalid password!"
  registerSuccess: "&aAccount successfully registered!"
  passwordTooShort: "&cPassword is too short!"
  passwordTooLong: "&cPassword is too long!"
  discordAlreadyUsed: "&cThis Discord ID is already linked to another account!"
  discordLinked: "&aDiscord account successfully linked!"
  discordUnlinked: "&aDiscord account successfully unlinked!"
  notLoggedIn: "&cYou must login to your account!"
  sessionAutoLogin: "&aAuto login by session!"
  recoveryCodeSent: "&aRecovery code sent to your Discord DMs!"
  discordSendFailed: "&cFailed to send Discord DM. Please contact administrator."
  discordNotFound: "&cAccount with this Discord ID not found!"
  invalidRecoveryCode: "&cInvalid recovery code!"
  passwordChanged: "&aPassword successfully changed!"
  discordUpdated: "&aDiscord ID successfully updated!"
  error: "&cAn error occurred!"

# Form texts
forms:
mainLogin:
title: "BeerAuth Login"
    description: "Choose an option:"
    loginButton: "Login"
    recoveryButton: "Recover Account"
  login:
title: "Login"
    description: "Enter your password"
    passwordPlaceholder: "Password"
  register:
title: "Registration"
    description: "Create a new account"
    passwordPlaceholder: "Password"
    discordPlaceholder: "Discord User ID (optional)"
  recovery:
title: "Account Recovery"
    description: "Enter your Discord User ID"
    discordPlaceholder: "Discord User ID"
  recoveryCode:
title: "Recovery Code"
    description: "Enter the code from Discord"
    codePlaceholder: "Code"
  changePassword:
title: "Change Password"
    description: "Enter your new password"
    passwordPlaceholder: "New Password"
  changeDiscord:
title: "Change Discord ID"
    description: "Enter your new Discord User ID"
    discordPlaceholder: "New Discord User ID"
  linkDiscord:
title: "Link Discord Account"
    description: "Enter your Discord User ID\n\nYou can get your ID by enabling Developer Mode in Discord:\n1. Settings → Advanced → Developer Mode\n2. Right-click your profile → Copy ID"
    discordPlaceholder: "Discord User ID"
🚀 Quick Setup Guide
Basic Setup (No Discord):
  1. Just install the plugin - it works out of the box!
  2. Players will automatically see registration/login forms
  3. No additional configuration needed
Discord Integration:
  1. Create a Discord bot at https://discord.com/developers/applications
  2. Copy the bot token to discord.botToken
  3. Enable these permissions for your bot:
    • MESSAGE_CONTENT
    • SEND_MESSAGES
    • VIEW_CHANNEL
  • Wow
Reactions: indra87g
Author
Slavko / Frost
Downloads
13
Views
69
First release
Last update
Rating
0.00 star(s) 0 ratings

More resources from Slavko / Frost

  • AstroCooldown
    AstroCooldown
    Enderpearl, gold-, enchanted-apples cooldown
  • Spleef
    Spleef
    Legendary spleef for all!
  • ProtectionStones
    ProtectionStones
    ProtectionStones for Nukkit
  • RPGClasses
    RPGClasses
    An advanced RPG class plugin for Nukkit featuring 6 unique classes, level progression and more!
  • CasinoPlugin
    CasinoPlugin
    Welcome to the world of gambling!
Top