功能特性
-
注册与登录,采用密码哈希处理(SHA-256 + 盐值)
-
支持 Gmail、Mail.ru、Yandex、Rambler、Outlook、Yahoo 及任意 SMTP 提供商的邮箱验证
-
默认禁用邮箱验证——玩家可即时注册。如需防机器人保护,请在配置文件中启用
-
暴力破解防护——在 N 次失败尝试后锁定登录(可配置)
-
验证码暴力破解防护——3 次无效尝试后锁定验证码
-
邮件垃圾信息防护——发送间隔为 60 秒(可配置)
-
IP 匹配时自动登录(会话最长可达 24 小时,可配置)
-
通过邮件确认 IP 变更——防止账号被盗
-
通过邮件验证码重置密码——仅需使用 /newpassword 命令
-
冻结未授权玩家——施加失明、黑暗、无敌、水下呼吸效果
-
完全隔离——禁止移动、破坏方块、聊天、传送、丢弃/拾取物品、钓鱼、使用传送门或载具
-
双语系统(俄语 / 英语),支持自动检测客户端语言(1.14+)
-
命令同时支持英文和俄文输入——玩家可使用拉丁字母或西里尔字母语法
-
智能 Tab 补全——英文命令显示 <password>,俄文命令显示 <пароль>
-
通过本地化文件完全自定义消息内容——更改颜色、文本和格式
-
为旧版 Minecraft(1.8.9–1.13)提供默认语言设置
-
实时重载配置——无需重启服务器即可执行 /betterauth reload
双语命令
所有插件命令均支持英文和俄文输入。玩家可根据偏好选择任意语法。
英文命令:
- /register
- /reg
- /login
- /log
- /verify
- /ver
- /confirm
- /resetpassword
- /respas
- /newpassword
- /newpas
- /betterauth reload
俄文命令:
- /регистрация
- /рег
- /вход
- /вх
- /верификация
- /вериф
- /подтверждение
- /сброс_пароля
- /сбр_пар
- /новый_пароль
- /нов_пар
- /авторизация перезагрузка
关键细节:
- 您可以混合使用语言——例如用俄文命令配合英文参数,反之亦然
- TabCompleter 会自动检测命令语言,并以相同语言显示提示
- 所有错误和确认消息均已本地化
兼容性:
- Minecraft:1.8.9 – 26.x
- 服务端核心 CraftBukkit, Spigot, Paper, Purpur, Pufferfish, Folia
- Java 8 – 25
- 代理端 BungeeCord, Waterfall, Velocity(插件需安装在后端服务器上)
- Geyser 完全兼容 Bedrock 玩家
安装方法:
-
下载插件并将其放入 plugins/ 文件夹
-
重启服务器
-
插件准备就绪!玩家可通过 /register 或 /регистрация 进行注册
-
若要启用邮箱验证:请设置邮箱(见下文)
-
若要自定义消息:编辑 plugins/BetterAuth/locale/ 中的文件
-
若要更改默认语言:编辑 config.yml 中的 default-locale
? 邮箱验证设置:
- 默认情况下禁用邮箱验证。玩家无需邮箱确认即可即时注册。这适用于测试服和本地服务器。
- 若要启用邮箱验证:
- 为您的服务器注册一个专用邮箱地址
- 创建一个应用专用密码(切勿使用您的常规邮箱密码!)
应用专用密码链接:
提供商:
- Gmail - - 需要两步验证?✅ 是
- Mail.ru - - 需要两步验证?❌ 否
- Yandex - - 需要两步验证?❌ 否
- Rambler - - 需要两步验证?❌ 否
- Outlook/Hotmail - - 需要两步验证?✅ 是
- Yahoo - - 需要两步验证?✅ 是
将生成的密码复制到 config.yml 并启用验证:
Config.yml:
- email:
- enabled: true
- username: "your_email@gmail.com"
- password: "your_app_password"
- server-name: "Your Server Name"
- 运行
/betterauth reload 或重启服务器
若要禁用验证:
Config.yml:
- email:
- enabled: false # 玩家即时注册,不发送邮件
? 本地化与消息自定义:
-
所有插件消息均可通过 plugins/BetterAuth/locale/ 中的文件进行自定义
-
支持任何语言——只需添加一个新文件(例如 de_de.yml)
-
可更改任何消息的颜色、文本和格式——从欢迎语到错误提示
-
邮件主题和正文也可通过本地化文件自定义
-
内置翻译:俄语 (ru_ru.yml) 和英语 (en_us.yml)
-
若要添加您自己的语言:
- 复制
en_us.yml 并重命名(例如 de_de.yml)
- 将所有消息翻译为您的语言
- 重启服务器
- 在 1.14+ 版本中,语言会从玩家的 Minecraft 客户端自动检测
- 在 1.8.9 – 1.13 版本中无法自动检测。请在
config.yml 中设置语言:
Config.yml:
- settings:
- default-locale: "en_us" 或 "ru_ru"
工作原理:
- 无邮箱验证(默认):
- 玩家加入服务器——看到注册提示
- 输入
/register pass123 pass123 mail@example.com
- 完成!可以开始游戏
- 有邮箱验证:
- 玩家加入服务器——看到注册提示
- 输入
/register pass123 pass123 mail@example.com
- 收到一封包含验证码的邮件(以玩家客户端的语言显示)
- 输入
/verify 123456
- 完成!可以开始游戏
- IP 变更:
- 玩家从新 IP 加入
- 输入
/login pass123
- 收到一封包含验证码的邮件
- 输入
/confirm 123456
- IP 已更新,可以开始游戏
- 忘记密码:
- 玩家输入
/resetpassword
- 收到一封包含验证码的邮件
- 输入
/newpassword 123456 newpass newpass
- 密码已更改,玩家已登录
安全性:
- 使用 SHA-256 哈希密码并添加随机 16 字节盐值
- 一次性 6 位验证码,限制尝试次数为 3 次(可配置)
- 5 次失败尝试后自动锁定登录(可配置)
- 60 秒邮箱冷却时间(可配置)
- 未授权玩家与世界完全隔离
- 应用密码无法读取邮件——仅支持发送
- 配置
- 所有设置位于 plugins/BetterAuth/config.yml
Features
-
Registration & Login with password hashing (SHA-256 + salt)
-
Email verification supporting Gmail, Mail.ru, Yandex, Rambler, Outlook, Yahoo, and any SMTP provider
-
Email verification disabled by default — players register instantly. Enable in config for bot protection
-
Brute force protection — login blocked after N failed attempts (configurable)
-
Code brute force protection — verification code blocked after 3 invalid attempts
-
Email spam protection — 60-second cooldown between sends (configurable)
-
Auto-login when IP matches (sessions up to 24 hours, configurable)
-
IP change confirmation via email — protection against stolen accounts
-
Password reset via email code — single /newpassword command
-
Frozen unauthorized players — blindness, darkness, invulnerability, water breathing
-
Full isolation — no movement, block breaking, chatting, teleportation, item dropping/pickup, fishing, portals, or vehicles
-
Bilingual system (Russian / English) with automatic client language detection (1.14+)
-
Commands work in both English and Russian — players can use Latin or Cyrillic syntax
-
Smart tab completion — shows <password> for English commands and <пароль> for Russian
-
Full message customization via locale files — change colors, text, format
-
Default language setting for older Minecraft versions (1.8.9–1.13)
-
Live config reload — /betterauth reload without server restart
Bilingual Commands
All plugin commands support both English and Russian input. Players can use whichever syntax they prefer.
English Command:
- /register
- /reg
- /login
- /log
- /verify
- /ver
- /confirm
- /resetpassword
- /respas
- /newpassword
- /newpas
- /betterauth reload
Russian Command:
- /регистрация
- /рег
- /вход
- /вх
- /верификация
- /вериф
- /подтверждение
- /сброс_пароля
- /сбр_пар
- /новый_пароль
- /нов_пар
- /авторизация перезагрузка
Key details:
- You can mix languages — enter a Russian command with English arguments and vice versa
- TabCompleter automatically detects the command language and shows hints in the same language
- All error and confirmation messages are also localized
Compatibility:
- Minecraft: 1.8.9 – 26.x
- Server Cores CraftBukkit, Spigot, Paper, Purpur, Pufferfish, Folia
- Java 8 – 25
- Proxies - BungeeCord, Waterfall, Velocity (plugin goes on backend servers)
- Geyser - Full compatibility with Bedrock players
Installation:
-
Download the plugin and place it in the plugins/ folder
-
Restart the server
-
The plugin is ready! Players can register with /register or /регистрация
-
To enable email verification: set up email (see below)
-
To customize messages: edit files in plugins/BetterAuth/locale/
-
To change default language: edit default-locale in config.yml
? Email Verification Setup:
- Email verification is disabled by default. Players register instantly without email confirmation. This is suitable for test and local servers.
- To enable email verification:
- Register a separate email address for your server
- Create an app password (do NOT use your regular email password!)
App password links:
Provider:
- Gmail - - Requires 2FA? ✅ Yes
- Mail.ru - - Requires 2FA? ❌ No
- Yandex - - Requires 2FA? ❌ No
- Rambler - - Requires 2FA? ❌ No
- Outlook/Hotmail - - Requires 2FA? ✅ Yes
- Yahoo - - Requires 2FA? ✅ Yes
Copy the generated password to config.yml and enable verification:
Config.yml:
- email:
- enabled: true
- username: "your_email@gmail.com"
- password: "your_app_password"
- server-name: "Your Server Name"
- Run /betterauth reload or restart the server
To disable verification:
Config.yml:
- email:
- enabled: false # Players register instantly, no emails sent
? Localization & Message Customization:
-
All plugin messages are customizable via files in plugins/BetterAuth/locale/
-
Any language supported — just add a new file (e.g., de_de.yml)
-
Change colors, text, and format of any message — from welcome to errors
-
Email subject and body also customizable via locale files
-
Built-in translations: Russian (ru_ru.yml) and English (en_us.yml)
-
To add your own language:
- Copy en_us.yml and rename it (e.g., de_de.yml)
- Translate all messages to your language
- Restart the server
- On versions 1.14+ language is auto-detected from the player's Minecraft client
- On versions 1.8.9 – 1.13 auto-detection is unavailable. Set the language in config.yml:
Config.yml:
- settings:
- default-locale: "en_us" or "ru_ru"
How It Works:
- Without email verification (default):
- Player joins the server — sees registration prompt
- Enters /register pass123 pass123 mail@example.com
- Done! Ready to play
- With email verification:
- Player joins the server — sees registration prompt
- Enters /register pass123 pass123 mail@example.com
- Receives a code via email (in the player's client language)
- Enters /verify 123456
- Done! Ready to play
- IP change:
- Player joins from a new IP
- Enters /login pass123
- Receives a code via email
- Enters /confirm 123456
- IP updated, ready to play
- Forgot password:
- Player enters /resetpassword
- Receives a code via email
- Enters /newpassword 123456 newpass newpass
- Password changed, player is logged in
Security:
- Passwords hashed with SHA-256 and random 16-byte salt
- One-time 6-digit verification codes with 3 attempt limit (configurable)
- Automatic login block after 5 failed attempts (configurable)
- 60-second email cooldown (configurable)
- Unauthorized players fully isolated from the world
- App password does NOT give access to read emails — send-only
- Configuration
- All settings are in plugins/BetterAuth/config.yml
评论 0
登录后参与评分
还没有评论,来抢沙发吧