BeerAuth

Experimental BeerAuth 1.0.2

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

# Discord Bot Settings
discord:
botToken: "YOUR_BOT_TOKEN_HERE"
  linkedMessage: "✅ Your Discord account has been successfully linked to Minecraft account: **{minecraft_username}**"
  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.

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

# Session Settings
session:
sessionDuration: 1440  # Session duration in minutes (1440 = 24 hours)

# Auto Logout Settings
autoLogout:
inactiveTime: 5  # Time in minutes before auto logout for inactivity
  message: "&cYou were disconnected due to inactivity"

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

# 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
192
Views
547
First release
Last update
Rating
5.00 star(s) 1 ratings

More resources from Slavko / Frost

Latest updates

  1. Fixed sessions and improve discord functions

    I implanted real discord integretion and fix bugs

Latest reviews

I've tried it, and it seems like the plugin is working pretty well.
Top