authmebia
一个用于 AuthMe Reloaded 的插件,将 AuthMe Reloaded 基于对话框的登录和注册提示替换为可自定义的对话框。它与 Qol 插件类似 :P,旨在优化你服务器上的认证体验。
GitHub
登录

注册

规则

自定义按钮链接

验证码

双重验证 (2FA)

添加邮箱

邮箱验证

找回密码

忘记密码但邮箱未找到的对话框

设置对话框

配置对话框

为什么我需要它?
- bia 是为那些真正想要自定义 AuthMe Reloaded 简单对话框的管理员准备的。
- 它提供了比命令更好的登录/注册新体验。
但是 AuthMe Reloaded(本身已经有用于登录/注册的对话框)。
- 我认为未来的 AuthMe Reloaded 将会拥有 bia 的全部功能 :D 所以这个项目可能会消亡或继续存在 :P
安全性
- 如果你担心 authmebia 的安全性,你可以不使用 bia 的自动登录功能。
| 需求 |
版本 |
原因 |
| Minecraft 客户端 |
1.21.6+ |
客户端可以渲染对话框 |
| Paper |
✔ |
|
| Folia |
✔ |
|
| Java |
21-25 |
|
| AuthMe Reloaded |
6.0.1+ |
可以加载 authmebia 的全部功能 |
| ViaVersion |
可选 |
检测旧版客户端,回退到命令登录/注册 |
可选功能,仅特定功能需要:
- Floodgate/geyser — 用于
auto.bedrock_autologin 和基岩版对话框 (dialog.bedrock)
- ItemsAdder / NexoMC / Oraxen — 仅当启用了相应的
integrations.* 条目时才需要
- PlaceholderAPI — 仅当你希望在 config.yml/lang 文本中使用
%placeholder% 扩展时才需要;如果没有它,{player} 替换和 MiniMessage 格式仍然正常工作
功能
对话框模式
- 预生成对话框模式:登录或注册窗口会阻止连接阶段,因此玩家出生时已经通过认证
- 后生成对话框模式:窗口在玩家加入世界后出现
- 三种认证输入模式:密码文本框、数字 PIN 码网格或逐位滑块
- 旧版客户端小键盘/滑块回退:对于协议版本完全无法渲染对话框的客户端(早于 1.21.6),当
auth_mode.mode 为 pin 或 slider 时,它们将获得一个库存 GUI 小键盘/滑块,因为否则无法通过 AuthMe 的纯聊天命令输入代码。仅在玩家生成后生效;使用与普通 PIN/滑块对话框完全相同的错误代码/尝试限制/双重验证逻辑
- 按钮布局切换 (
dialog.button_layout):在注册和登录对话框中,将主操作按钮垂直排列(堆叠)或水平排列(并排)
身份验证
-
高级账户绕过:当玩家的 UUID 与 AuthMe 中存储的高级(Premium)账户匹配时,会自动检测到并跳过 authmebia 的所有对话框。
-
高级账户自动登录 (auto.premium_autologin,默认关闭) + 高级账户密码设置 (premium.enabled,默认开启):比上述的高级账户绕过更进一步。Bia 不会执行自己的高级账户认证或独立向 Mojang 验证账户。相反,它使用 AuthMe Reload 6.0.0 版本提供的高级认证 API。Bia 通过检测 UUID v4 来确定何时使用该 API,然后自动处理账户设置流程:如果玩家尚未注册,它会调用 forceRegister 并生成随机密码,随后调用 forceLogin。接着,Bia 使用 AuthMe Reload 的 API 设置账户密码并将其标记为高级账户。在此过程中不会显示任何登录或注册对话框。之后,会显示一次强制性的密码设置对话框,要求玩家设置自己的 AuthMe 密码——仅在首次注册时 (!registered);老玩家每次登录时将不再看到此提示。将 premium.enabled: false 可完全禁用此提示并保留内部占位符。完成后,所有后续的高级账户认证均由 AuthMe Reload 自行处理,Bia 不再显示任何进一步的登录对话框。可通过 /bia settings(自动登录 → 高级账户密码设置)和 /bia config(premium 部分)进行管理。
-
基岩版自动登录 (auto.bedrock_autologin,默认关闭):相同的自动登录功能,但适用于通过 Geyser/Floodgate 连接的基岩版玩家。auto.bedrock_mode 控制对此的信任程度:link(默认,安全)仅在 Floodgate 报告玩家账户已链接到经过验证的 Java 高级账户时生效;geyser(需手动启用,不安全,除非 Geyser 自身的在线认证类型已启用,但若在 Geyser 中将 auth-type 配置为 offline 则不安全)信任任何基岩版/Geyser 连接,不进行任何账户链接检查。
-
基岩版对话框支持:基岩版玩家看到的注册/登录/找回/规则/验证码/自定义屏幕对话框与 Java 版玩家相同,复用所有相同的逻辑。dialog.bedrock 允许你仅为基岩版客户端覆盖按钮宽度、输入框宽度和认证输入模式(密码/PIN码/滑块),因为某些基岩版设备的可用对话框区域较小。
-
会话自动登录 (auto.session_autologin,默认开启):对于返回玩家,如果 AuthMe 自身的会话功能(AuthMe 自身 config.yml 中的 settings.sessions.enabled/timeout)已通过匹配 IP 和超时时间进行认证,则跳过对话框。这复现了 AuthMe 自身的会话比较机制,而不是询问 AuthMe 是否已经做出决定,因为 AuthMe 直到玩家加入过程的较晚阶段才会评估其会话功能,而本插件的对话框决策发生得更早。除非同时启用了 AuthMe 自身的会话功能,否则此功能无效。如果未能检测到 Bia 的会话,那是特性 :D 。不用担心安全性,Bia 仅跳过自己的对话框。AuthMe 始终在其之后运行。
-
按 IP 限制的注册 —— 尊重 AuthMe settings.restrictions.maxRegPerIp。AuthMe 自身的 /register 会检查此限制,但 forceRegister/registerPlayer(由对话框使用)会跳过该限制。AuthMeBia 通过读取 settings.restrictions.maxRegPerIp(AuthMe 中默认为 1)并在创建账户前查询 DataSource.getAllAuthsByIp(ip) 来镜像此检查;回环 IP 和拥有 authme.allowmultipleaccounts 权限的玩家会被豁免,这与 AsyncRegister.isPlayerIpAllowedToRegister 的行为完全一致。如果超出限制,玩家将被断开连接,并显示与 AuthMe 相同的消息 (error.max_registration)。这适用于预加入(阻塞)和加入后(游戏内)对话框模式下的密码/PIN码/滑块注册,以及最终调用 registerAndLogin 的邮件验证注册。
-
TOTP / 双重认证 (2FA) 对话框:针对在 AuthMe 中设置了身份验证器应用的玩家。
-
验证码对话框:与 AuthMe 的验证码设置同步。但如果机器人使用旧协议,Bia 无法显示验证码 :D。(趣味特性)
-
注册时的电子邮件验证对话框(复用 AuthMe 的 SMTP 配置)。
-
无需验证的电子邮件 (dialog.register.email_add_nonverify):在注册期间请求电子邮件,并将其作为“已验证”状态存储在 AuthMe 账户上,不发送代码也不显示验证对话框。即使 email.enabled 为 false 也能正常工作。
-
“忘记密码?”:登录对话框上的一个按钮,让玩家无需管理员即可重置自己的密码。它会查找 authme 上已有的电子邮件(在邮件验证注册期间或通过 email_add_nonverify 设置),通过 AuthMe 的 SMTP 配置向其发送重置代码,并在代码验证通过后 —— 显示与管理员强制恢复相同的重置对话框。档案中没有电子邮件的账户将被告知联系管理员。
-
注销验证对话框 (email.unregister_verify,默认开启):当拥有电子邮件档案的玩家运行 /unreg 或 /unregister 时,AuthMeBia 会发送代码并显示与忘记密码类似的验证对话框,而不是 AuthMe 基于聊天的 /email code 流程。代码验证通过后,原始命令将被重新执行,因此 AuthMe 仍会在删除账户之前执行其自身的密码检查。需要 AuthMe 的 SMTP 设置,且不依赖于 email.enabled。
-
管理员强制密码恢复:使用 /bia recover <player> 标记账户;玩家在下一次登录时或如果已在线则立即显示重置对话框。重置对话框现在遵循 auth_mode.mode(密码/PIN码/滑块),与注册和登录对话框匹配,而不是始终显示文本字段。
-
服务器规则同意复选框:在新玩家创建账户之前显示。
-
登录尝试次数限制:密码错误过多后踢出玩家。
-
登录超时:可选地踢出玩家或重新显示对话框。
-
IP 封禁,在多次跨会话登录失败后逐步增加封禁时长。仅限 bia 的对话框
通知
- Discord Webhook 通知:在注册时(
discord.*)发送,以 Components V2 消息格式呈现,支持可选标题、分隔符以及将玩家皮肤作为缩略图。头像由玩家自己的配置文件纹理渲染并随消息上传,因此无需第三方头像服务
- 自定义通知(
notifications.toasts):在首次注册、首次登录、首次发送消息或首次完成进度时,于屏幕角落显示小型成就弹窗;可配置标题、描述、物品图标、音效以及进度框类型(task/goal/challenge)
/bia notifier <toast> <player> show [seconds]:允许管理员在不修改其持久化的“已显示”状态的情况下,向在线玩家预览任何已配置的提示框,确保测试不会影响后续真实触发
- 自定义标题(
custom_titles + <titles:name>):定义带有独立延迟时间的命名标题/副标题/动作栏条目,然后可在登录、注册、恢复或自定义界面时通过 titles_scripts 播放它们。使用 /bia titles <title> <player> show [seconds] 可向在线玩家预览单个条目;[seconds] 为可选参数,用于覆盖其默认延迟时间
第三方物品插件集成
- 与 ItemsAdder、NexoMC 和 Oraxen 的可选、自检测集成(
integrations.*,默认全部关闭)。每个集成仅在检测到对应插件实际安装且其 API 可加载时才会激活;若未满足条件,该集成会静默禁用自身,不会对登录或注册流程产生任何影响
管理工具
- 绕过列表:通过
/bia add 添加的玩家将跳过 bia 的所有对话框,转而使用 AuthMe 自身的命令
- 自定义界面:在 config.yml 中定义任意数量的对话框窗口,并通过
/bia screen <id> [player] 推送给任意在线玩家;或通过设置 trigger: postjoin/trigger: prejoin 实现在加入服务器时自动显示,而不仅限于通过命令触发。具有相同触发器的界面按配置顺序依次运行:prejoin 界面会阻塞等待,直到玩家点击每个服务器端按钮(若客户端无响应则启用 30 秒安全超时),postjoin 界面则一个接一个排队显示而非相互替换;open_url/copy 操作及 ESC 键不会推进队列。界面可包含可选的同意复选框(checkbox_label/checkbox_action),一旦勾选并确认,该界面对该玩家将永久隐藏;可通过 /bia screen reset <player> [id] 重置此状态
- 调试命令:在游戏中预览单个对话框,无需经历完整的登录流程
/bia look <ip|player>:显示指定 IP 地址的 IPinfo 数据,或显示玩家名称对应的 UUID/类型信息;免费的 IPinfo JSON 端点无需额外配置即可使用
/bia settings:在分类子对话框中编辑常用选项;保存后立即重新加载配置和语言文件
/bia config:在对话框中编辑 config.yml 文件;对于大文件会自动回退到节选择器;保存后立即重新加载配置和语言文件
- 启动检查:如果 AuthMe 自身内置的对话框(
settings.registration.dialog.preJoin/postJoin.enable)也处于启用状态,会在控制台发出警告,以防止同时出现两个对话框
附加功能
- 自定义内联图标(
custom_icons + <icons:name>):在 config.yml 中一次性定义命名图标(Atlas 精灵、玩家头颅或完整物品图标),然后在任意对话框的标题、内容或按钮标签中插入 <icons:name> 即可内联显示。物品类型的图标还可通过界面的 icon: 字段显示在自定义界面的内容上方
- 对话框内的链接按钮(打开 URL、复制到剪贴板)
- 各按钮点击音效:几乎每个对话框按钮(提交、注销、同意、验证、重新发送、忘记密码、自定义界面按钮等)均可在点击时播放独立的 Minecraft 音效
- 首次登录后发送给玩家的欢迎消息(类似某些服务器 Discord 中的 Canva 风格图片),通过 Discord Webhook 发送
- ViaVersion 支持:使用旧协议版本的玩家会自动回退至 AuthMe 的正常流程
命令
| 命令 |
权限 |
描述 |
/bia reload |
OP |
重新加载配置和语言文件 |
/bia info |
- |
显示插件版本和状态 |
/bia add <player> |
authmebia.bypass |
将玩家添加到跳过对话框列表 |
/bia rm <player> |
authmebia.bypass |
从跳过对话框列表中移除玩家 |
/bia recover <player> |
bia.admin.recover |
在下一次登录时强制重置密码 |
/bia screen <id> [player] |
OP |
向玩家展示自定义界面 |
/bia screen reset <player> [id] |
OP |
重置玩家对某个自定义界面的“永久关闭”复选框(省略 id 则重置所有界面) |
/bia debug <feature> <value> |
OP |
在游戏中测试功能(true/false/show,或对于 discord 使用 register_first/register) |
/bia notifier <toast> <player> show [seconds] |
OP |
在线预览已配置的 Toast 通知,不影响其“每位玩家仅限一次”的状态 |
/bia titles <title> <player> show [seconds] |
authmebia.titles |
在线预览 custom_titles 条目;[seconds] 可选地覆盖其延迟时间 |
/bia look <ip|player> |
authmebia.look |
显示 IP 或玩家信息 |
/bia settings |
authmebia.settings |
在对话框中编辑常用设置 |
/bia config |
authmebia.config |
在对话框中编辑 config.yml |
拥有 authmebia.update 权限的玩家会在启动检查后发现新版本或加入服务器时收到游戏内消息。
调试功能:captcha、email、register、login、recover、rule、discord。
对 captcha 或 email 使用 show 可直接预览这些对话框,无需经过登录流程。
/bia debug rule true 会在游戏中显示实际的规则对话框,包含配置好的标题、内容、复选框和按钮;按 ESC 可关闭预览(真实的预加入对话框无法通过 ESC 关闭),在此同意仅会打印一条调试消息。
/bia debug discord <register_first|register> 向配置的 Webhook 发送测试通知(忽略 enabled 开关,使用你自己的名字和皮肤)。
使用的 AuthMe API
AuthMeBia 通过反射而非编译时 API 依赖挂钩到 AuthMe Reloaded。因此它可以运行在任何旧版本的 AuthMe 上。
| 类 |
用法 |
fr.xephi.authme.api.v3.AuthMeApi |
核心操作:isRegistered, forceLogin, forceRegister, forceLogout, forceUnregister, checkPassword, changePassword, isAuthenticated, registerPlayer, getLastIp, getLastLoginTime |
fr.xephi.authme.data.auth.PlayerAuth |
读取玩家数据:isPremium, getPremiumUuid, getEmail, getTotpKey, setEmail |
fr.xephi.authme.data.auth.PlayerCache |
isAuthenticated(name) — 用于内存中的身份验证检查 |
fr.xephi.authme.data.VerificationCodeManager |
镜像 AuthMe 的 /unreg 检查 (isVerificationRequired) 并在对话框代码正确后标记会话已验证 (verify) |
fr.xephi.authme.datasource.DataSource |
获取 PlayerAuth 记录 (getAuth),检查 auto.session_autologin 状态 (hasSession),持久化邮箱更改 (updateEmail),并强制执行 settings.restrictions.maxRegPerIp (getAllAuthsByIp) |
fr.xephi.authme.mail.EmailService |
检查 SMTP 可用性,发送验证码 |
fr.xephi.authme.security.totp.TotpAuthenticator |
验证 2FA 对话框的 TOTP 代码 (checkCode(PlayerAuth, String)) |
fr.xephi.authme.events.LoginEvent |
检测成功登录以完成异步 Future |
fr.xephi.authme.events.RegisterEvent |
检测成功注册 |
fr.xephi.authme.events.UnregisterByPlayerEvent / UnregisterByAdminEvent |
在账户被移除后重置每次会话的对话框状态 |
fr.xephi.authme.events.FailedLoginEvent |
检测登录失败 |
AuthMeBia 还以与 AuthMe Reloaded API 相同的方式,选择性地桥接 Floodgate 的 API,仅在启用 auto.bedrock_autologin 或使用 Bedrock 对话框覆盖时:
| 类 |
用法 |
org.geysermc.floodgate.api.FloodgateApi |
检测 Floodgate/Bedrock 连接 |
org.geysermc.floodgate.api.player.FloodgatePlayer |
查找 Bedrock 玩家关联的账户 |
org.geysermc.floodgate.util.LinkedPlayer |
读取已验证关联的 Java UUID(如果存在) |
致谢:
为预加入连接处理和会话验证的行为提供了灵感。
AuthMeBia 中的实现是原创的,不包含任何 AuthMeReloaded 源代码。 :P
配置
config.yml
# AuthMeBia configuration.
# Text fields support MiniMessage color/decoration tags, e.g. <red>, <#ff0000>, <bold>.
# Use {player} as a placeholder for the player's name where supported.
# Use \n inside a string to insert a line break.
# 消息的语言代码(断开/踢出、错误、聊天)。
# 内置选项:en (English)、vi (Vietnamese)、zh (Chinese Simplified)、de (German)、ru (Russian)、fr (French)。
# 如需添加自定义语言,请复制 plugins/AuthMeBia/lang/en.yml 到 lang/<code>.yml 并编辑。
# 使用 /bia reload 重载配置。
lang: en
# 通过 bStats 收集匿名使用统计数据(需要重启服务器)。
bstats: true
# 检查 AuthMeBia 的新版本 ;V
update_checker: true
# /bia look 命令的 IPinfo 设置。默认的免费端点无需配置即可使用。
look:
ipinfo_url: "https://ipinfo.io/{ip}/json"
ipinfo_token: ""
# 对已验证身份的用户自动跳过认证。
# 两个标志默认均为 false。当两者都为 false 时,行为与完全省略此部分相同。
auto:
premium_autologin: false
bedrock_autologin: false
# link (默认,安全) 或 geyser (不安全,除非启用了 Geyser 自身的 online
# auth-type -- 请参阅 config.yml 中的完整注释)
bedrock_mode: link
# 如果玩家已通过 AuthMe 自身的会话功能完成认证,则跳过对话框。
# 除非 AuthMe 的设置 sessions.enabled 也为 true,否则此选项无效。默认值:true。
session_autologin: true
dialog:
enabled: true
menu: true
min_protocol_version: 771
# 已弃用 / 无效。保留此项是为了防止现有配置文件报错。
protocol_detect_wait_ms: 500
button_width: 200
# vertical (垂直堆叠) 或 horizontal (水平并排)
button_layout: vertical
input_width: 200
register:
title: "<icons:trial_key> <#4287f5>创建账号</#4287f5>"
content: "<gray>欢迎,{player}!请创建一个密码以完成注册。</gray>"
password_label: "密码"
confirm_password_label: "确认密码"
# 在注册时询问邮箱并将其存储为已验证状态。
# 即使 email.enabled 为 false 也能正常工作。
email_add_nonverify: false
submit_sound: ""
# 加入后的标题序列以及允许播放它的事件。
titles_scripts: ""
titles_trigger: []
login:
title: "<icons:trial_key> <gold>登录</gold>"
content: "<gold>欢迎回来,{player}!</gold>"
password_label: "密码"
submit_sound: ""
# 加入后的标题序列以及允许播放它的事件。
titles_scripts: ""
titles_trigger: []
forgot_password:
# 通过账户上已有的电子邮件进行自助密码重置。
# 需要启用 email.enabled 或 dialog.register.email_add_nonverify,以便在账户中存储电子邮件。
enabled: false
button: "<yellow>忘记密码?</yellow>"
button_sound: ""
email_title: "<gold>忘记密码</gold>"
email_content: "<gray>输入与此账户关联的电子邮件地址。</gray>"
email_label: "电子邮件"
submit_button: "<green>发送验证码</green>"
submit_sound: ""
invalid_email_error: "电子邮件不正确"
no_email_message: "<red>此账户未关联任何电子邮件。请联系管理员。</red>"
logout_button: "<red>注销</red>"
logout_sound: ""
submit_register_button: "<green>注册</green>"
submit_login_button: "<green>登录</green>"
allow_close: true
# 仅在 allow_close 为 false 时使用;玩家在未点击的情况下关闭游戏内对话框后,
# 重新检查并重新显示对话框前的延迟时间(以刻为单位)。
reopen_delay_ticks: 10
# 可选的重写项,仅应用于基岩版 (Geyser/Floodgate) 玩家。
# 若保持 enabled: false,则基岩版将与 Java 版保持一致。
bedrock:
enabled: false
button_width: 300
input_width: 300
# "" = 继承 auth_mode.mode。选项:""、password、pin、slider
auth_mode_override: ""
auth_mode:
# password | pin | slider
mode: password
pin:
length: 4
title: "<gold>输入您的 PIN 码</gold>"
confirm_button: "<green>确认</green>"
delete_button: "<red>⌫ 删除</red>"
button_width: 100
button_sound: ""
slider:
length: 4
title: "<gold>输入您的代码</gold>"
confirm_button: "<green>确认</green>"
button_width: 100
button_sound: ""
rule:
enabled: false
title: "<gold>服务器规则</gold>"
content: ""
checkbox_label: "<yellow>我已阅读并同意规则</yellow>"
agree_button: "<green>同意</green>"
agree_sound: ""
discord:
enabled: false
# 必须是 https:// URL。
webhook_url: ""
# 玩家当前加入会话中的首次注册(通常是其第一次加入)。
register_first:
enabled: true
title: "新手 :D"
content: "**{player}** 已完成注册。{player_avatar}"
# 其他任何注册情况,例如在同一会话中取消注册后再次注册。
register:
enabled: true
title: ""
content: "**{player}** 已完成注册。{player_avatar}"
# MiniMessage 可在 title/content 中使用(将转换为 Discord Markdown);
# {player} 和 {player_avatar} 会被替换。头像会随消息一起上传,因此无需外部头像服务。
# 玩家资料必须包含皮肤纹理;如果没有(离线模式服务器通常需要皮肤插件),
# 消息将不包含缩略图发送。
welcome_image:
enabled: false
links:
enabled: false
position: grouped
button_width: 200
buttons:
- enabled: true
label: "<#5865F2>Discord</#5865F2>"
action: open_url
value: "https://discord.gg/abc"
width: 200
- enabled: true
label: "<gray>{player},复制 IP</gray>"
action: copy
value: "play.example.com"
width: 200
captcha:
enabled: false
length: 5
title: "<gold>验证</gold>"
content: "<gray>输入以下代码以继续:</gray>\n<white><bold>{code}</bold></white>"
input_label: "输入代码"
submit_button: "<green>验证</green>"
submit_sound: ""
trust_duration_seconds: 18000
login_attempts:
enabled: true
max_tries: 5
otp_attempts:
enabled: true
max_tries: 5
login_timeout:
enabled: true
seconds: 60
kick_message: "<red>认证超时。请重新连接。</red>"
recover:
title: "<gold>重置密码</gold>"
content: "<gray>管理员已要求你设置新密码。</gray>"
new_password_label: "新密码"
confirm_password_label: "确认密码"
submit_button: "<green>设置密码</green>"
submit_sound: ""
# 加入后的标题序列以及允许播放它的触发事件。
titles_scripts: ""
titles_trigger: []
success_message: "<green>密码更新成功。</green>"
mismatch_message: "<red>密码不匹配,请重试。</red>"
# 玩家首次通过
# auto.premium_autologin 或 auto.bedrock_autologin 加入时显示的密码设置对话框。如果这两个选项都为 false,则此配置无效。
premium:
# 首次自动登录时密码设置对话框的主开关。
# 当设为 false 时,自动登录的玩家将不会被提示设置自定义
# 密码,而是保留内部生成的占位符密码。
# 默认值:true。注意:这不会影响 AuthMe 的
# settings.restrictions.maxRegPerIp 检查,该检查在对话框注册之前单独强制执行。
enabled: true
title: "<gold>设置你的密码</gold>"
content: "<gray>你已自动登录。请为你的账户设置密码(用于从未经验证的客户端加入时使用)。</gray>"
new_password_label: "新密码"
confirm_password_label: "确认密码"
submit_button: "<green>设置密码</green>"
submit_sound: ""
success_message: "<green>密码设置成功。</green>"
mismatch_message: "<red>密码不匹配,请重试。</red>"
email:
# 关于注册期间捕获电子邮件但不进行验证的配置,参见
# dialog.register.email_add_nonverify。
enabled: false
# 使用对话框替换 AuthMe 基于聊天的 /unreg 代码。
unregister_verify: true
code_length: 6
resend_cooldown: 60
field_label: "邮箱"
verify_title: "<gold>验证你的邮箱</gold>"
verify_content: "<gray>验证码已发送至 {email}。\n{cooldown}秒后可重新发送。</gray>"
code_label: "验证码"
verify_button: "<green>验证</green>"
verify_sound: ""
resend_button: "<yellow>重新发送验证码</yellow>"
resend_sound: ""
resend_button_cooldown: "<gray>重新发送 ({cooldown}s)</gray>"
cancel_button: "<gray>取消</gray>"
invalid_email_message: "<red>请输入有效的电子邮件地址。</red>"
send_failed_message: "<red>无法发送邮件。请联系管理员。</red>"
wrong_code_error: "验证码错误"
totp_2fa:
# 如果玩家在 AuthMe 中启用了 TOTP,则在登录后显示 2FA 对话框。
# 需要 AuthMe 5.6 及以上版本。
enabled: false
title: "<gold>双因素认证</gold>"
content: "<gray>输入你的 6 位身份验证器应用代码:</gray>"
input_label: "验证器代码"
submit_button: "<green>验证</green>"
submit_sound: ""
wrong_code_error: "无效代码"
# 引用为 <titles:name> 的命名标题/动作栏条目。每个条目
# 支持 title、subtitle、actionbar 和 delay(秒,0.1-60)。
# 在游戏中预览某个条目:/bia titles <title> <player> show [seconds]
custom_titles:
hello:
title: "<gold>你好,{player}!</gold>"
subtitle: "<gray>欢迎来到服务器。</gray>"
actionbar: ""
delay: 3
welcome:
title: "<gradient:gold:yellow>欢迎!</gradient>"
subtitle: "<white>玩得开心,公平游戏。</white>"
actionbar: "<yellow>游玩前请先阅读 /rules。</yellow>"
delay: 3
# 自定义对话框屏幕。使用以下命令显示:/bia screen <id> [player]
# 重置玩家的“永久关闭”复选框状态:/bia screen reset <player> [id]
# 按钮操作:close, open_url, copy, command, console
custom_screens:
- id: example
enabled: false
title: "<icons:trial_key> <gold>服务器通知</gold>"
content: "<gray>欢迎来到服务器,<yellow>{player}</yellow>!\n祝你游戏愉快。</gray>"
allow_close: true
button_width: 200
# command(默认)、postjoin 或 prejoin -- 参见 doc/README.md
trigger: postjoin
sound_on_show: ""
# 可选的标题序列(仅限加入后)。
titles_scripts: ""
titles_trigger: []
# 可选的协议复选框 -- 关于 checkbox_action 参见 doc/README.md
checkbox_label: "<gray>不再显示此消息</gray>"
checkbox_action: close
buttons:
- label: "<green>确定</green>"
action: close
sound: "minecraft:ui.button.click"
- label: "<#5865F2>Discord</#5865F2>"
action: open_url
value: "https://discord.gg/abc"
width: 200
ip_ban:
enabled: false
threshold: 10
ban_durations_seconds: [600, 1800, 3600, 86400]
# 可在任何地方通过 <icons:name> 内联使用的命名图标(标题、内容、
# 按钮标签、自定义屏幕文本等)-- 完整的 sprite/player_head/item 字段参考参见 doc/README.md。
custom_icons:
trial_key:
type: sprite
atlas: items
sprite: item/trial_key
settings_general:
type: sprite
atlas: items
sprite: item/comparator
settings_auto:
type: sprite
atlas: items
sprite: item/clock
settings_security:
type: sprite
atlas: items
sprite: item/iron_door
settings_appearance:
type: sprite
atlas: items
sprite: item/painting
settings_auth:
type: sprite
atlas: items
sprite: item/name_tag
config_section:
type: sprite
atlas: items
sprite: item/writable_book
ui_save:
type: sprite
atlas: items
sprite: item/lime_dye
ui_back:
type: sprite
atlas: items
sprite: item/arrow
ui_exit:
type: sprite
atlas: items
sprite: item/barrier
config_version: 5
notifications.toasts 和 integrations
# 每个玩家每次检查仅显示一次的自定义通知。
notifications:
toasts:
- name: welcome_toast
check: first_register
title: "<gold>欢迎!</gold>"
content: "<gray>感谢加入服务器。</gray>"
icon: "minecraft:player_head"
sound: "minecraft:entity.player.levelup 0.6 1.0"
delay: 5
frame: task
# 与第三方物品/资源包插件的可选集成。
# 每个集成都会自行检查目标插件是否已安装;如果未安装,则不会执行任何操作,且绝不会影响登录/注册。
integrations:
itemsadder:
enabled: false
nexomc:
enabled: false
oraxen:
enabled: false
贡献者
authmebia
An addon for AuthMe Reloaded that replaces dialog-based login and register prompts of authme reloaded with dialog customizable.It same a addons Qol :P for auth in your server
GitHub
Login

Register

Rules

Custom buttons link

Captcha

2FA

Add Email

Email verify

Recovery password

Forgot Password but email not found dialog

Settings dialog

Config dialog

Why I need it ?
- bia cooked for admin realy wanna custom simple dialogs of authme reload
- It provide a new experience login / register better than command
But authme reload (itself already have dialog for login / register).
- I think future authme reload will have full feature of bia :D so project can die or not :P
Security
- If u worry abt security of authmebia , u can don't use auto login of bia .
| Requirement |
Version |
Reason |
| Minecraft client |
1.21.6+ |
Client Can render dialogs |
| Paper |
✔ |
|
| Folia |
✔ |
|
| Java |
21-25 |
|
| AuthMe Reloaded |
6.0.1+ |
Can load full features of authmebia |
| ViaVersion |
Optional |
Detect old-client , fallback to command login /register |
Optional, only needed for specific features:
- Floodgate/geyser — required for
auto.bedrock_autologin and the Bedrock dialog (dialog.bedrock)
- ItemsAdder / NexoMC / Oraxen — only needed if the corresponding
integrations.* entry is enabled
- PlaceholderAPI — only needed if you want
%placeholder% expansions inside config.yml/lang text; without it, {player} substitution and MiniMessage formatting still work normally
Features
Dialog modes
- Pre-spawn dialog mode: the login or register window blocks the connection phase, so the player spawns already authenticated
- Post-spawn dialog mode: the window appears after the player joins the world
- Three auth input modes: password text field, numeric PIN grid, or per-digit slider
- Old-client numpad/slider fallback: clients whose protocol version can't render dialogs at all (pre-1.21.6) get an inventory-GUI numpad/slider instead when
auth_mode.mode is pin or slider, since there's otherwise no way to type a code through AuthMe's plain chat commands. Works post-spawn only; uses the exact same wrong-code/attempt-limit/2FA logic as the normal PIN/slider dialog
- Button layout switch (
dialog.button_layout): arrange the main action buttons vertically (stacked) or horizontally (side by side) in both the register and login dialogs
Authentication
- Premium bypass: players whose UUID matches a premium account stored in AuthMe are detected automatically and skip all dialogs of authmebia.
- Premium auto-login (
auto.premium_autologin, off by default) + Premium password-set (premium.enabled, on by default): Goes a step further than the premium bypass above. Bia does not perform its own premium authentication or independently verify accounts with Mojang. Instead, it uses the premium authentication API provided by AuthMe Reload since version 6.0.0. Bia detects UUID v4 to determine when this API should be used, then handles the account setup process automatically: it calls forceRegister with a randomly generated password if the player is not registered yet, followed by forceLogin. Bia then uses AuthMe Reload's API to set the account's password and mark it as a premium account. No login or registration dialog is displayed during this process. Afterward, a one-time mandatory password-set dialog is displayed, requiring the player to set their own AuthMe password — only on first registration (!registered); returning players no longer see it on every login. Set premium.enabled: false to disable the prompt entirely and keep the internal placeholder. Once completed, all subsequent premium authentication is handled by AuthMe Reload itself, without Bia displaying any further login dialogs. Manageable via /bia settings (Auto-login → Premium password-set) and /bia config (premium section).
- Bedrock auto-login (
auto.bedrock_autologin, off by default): the same automatic login, but for Bedrock players connecting through Geyser/Floodgate. auto.bedrock_mode controls how much this trusts: link (default, safe) only applies if Floodgate reports the player's account as linked to a verified Java premium account; geyser (opt-in, unsafe unless Geyser's own online auth-type is enabled.But it unsafe when u config in geyser auth-type: offline ) trusts any Bedrock/Geyser connection with no linked-account check at all
- Bedrock dialog support: Bedrock players see the same register/login/recover/rule/captcha/custom_screen dialogs as Java players, reusing all the same logic.
dialog.bedrock lets you optionally override button width, input width, and the auth input mode (password/PIN/slider) just for Bedrock clients, since some Bedrock devices have a smaller usable dialog area
- Session auto-login (
auto.session_autologin, on by default): skips the dialog for a returning player that AuthMe's own session feature (settings.sessions.enabled/timeout in AuthMe's own config.yml) would already authenticate by matching IP and timeout. This reproduces AuthMe's own session comparison rather than asking AuthMe whether it already decided, since AuthMe does not evaluate its session feature until later in the join than this plugin's dialog decision is made. Has no effect at all unless AuthMe's own session feature is also enabled . If session of bia detected fail , it is feature :D . U don't worry security , bia only skip own dialog. Authme alway behind it
- Registration per-IP limit — respects AuthMe
settings.restrictions.maxRegPerIp. AuthMe's own /register checks the limit, but forceRegister/registerPlayer (used by the dialog) skip it. AuthMeBia mirrors the check by reading settings.restrictions.maxRegPerIp (default 1 in AuthMe) and querying DataSource.getAllAuthsByIp(ip) before creating an account; loopback IPs and players with authme.allowmultipleaccounts are exempt, exactly as in AsyncRegister.isPlayerIpAllowedToRegister. If the limit is exceeded, the player is disconnected with the same message AuthMe would show (error.max_registration). This applies to password/PIN/slider registration in both pre-join (blocking) and post-join (in-game) dialog modes, and to email-verified registration that eventually calls registerAndLogin.
- TOTP / 2FA dialog for players who have an authenticator app set up in AuthMe
- Captcha dialog synced with AuthMe's captcha setting.But so bad if bot use old procotol bia cannot show captcha :D . ( Fun feature)
- Email verification dialog on registration (reuses AuthMe's SMTP config)
- Email without verification (
dialog.register.email_add_nonverify): asks for an email during registration and stores it on the AuthMe account as already verified, without sending a code or showing the verification dialog. Works even when email.enabled is false
- "Forgot Password?": a button on the login dialog lets players reset their own password without an admin. It looks up the email already on authme (set during email-verified registration or with
email_add_nonverify), sends a reset code to it through AuthMe's SMTP config, and | once the code is verified — shows the same reset dialog used for admin-forced recovery. Accounts with no email on file are told to contact an admin instead
- Unregister verification dialog (
email.unregister_verify, on by default): when a player with an email on file runs /unreg or /unregister, AuthMeBia sends the code and shows the same kind of verify dialog used by forgot password instead of AuthMe's chat-based /email code flow. After the code is verified the original command is replayed, so AuthMe still performs its own password check before deleting the account. Requires AuthMe's SMTP settings and does not depend on email.enabled
- Admin-forced password recovery: use
/bia recover <player> to flag an account; the player is shown a reset dialog on their next login or immediately if they are already online. The reset dialog now follows auth_mode.mode (password/PIN/slider), matching the register and login dialogs instead of always showing a text field
- Server rules agreement checkbox shown to new players before their account is created
- Login attempt limit with kick after too many wrong passwords
- Login timeout with optional kick or re-show of the dialog
- IP ban with escalating ban durations after repeated failed logins across sessions.Only dialogs of bia
Notifications
- Discord webhook notifications on registration (
discord.*), sent as Components V2 messages with an optional title, separator, and the player's skin as a thumbnail. The head is rendered from the player's own profile texture and uploaded with the message, so no third-party avatar service is needed
- Custom notifications (
notifications.toasts): show the small achievement popup in the corner of the screen on first_register, first_login, first_message, or first_advancement, with a configurable title, description, item icon, sound, and advancement frame (task/goal/challenge).
/bia notifier <toast> <player> show [seconds] lets an admin preview any configured toast on an online player without touching its persisted "already shown" state, so testing never affects whether it fires for real later
- Custom titles (
custom_titles + <titles:name>): define named title/subtitle/actionbar entries with their own delay, then play them from titles_scripts on login, register, recover, or custom screens. Use /bia titles <title> <player> show [seconds] to preview one entry on an online player; [seconds] optionally overrides its delay
Third-party item plugin integrations
- Optional, self-checking integrations with ItemsAdder, NexoMC, and Oraxen (
integrations.*, all off by default). Each one only activates if the corresponding plugin is actually installed and its API is loadable; if it isn't, the integration quietly disables itself without affecting login/registration in any way
Admin tools
- Bypass list: players added with
/bia add skip all dialogs of bia and fall back to AuthMe's own commands
- Custom screens: define any number of dialog windows in config.yml and push them to any online player with
/bia screen <id> [player], or auto-show them on join with trigger: postjoin/trigger: prejoin instead of only on command. Screens with the same trigger run sequentially in config order: prejoin screens block until each server-side button click (with a 30-second safety timeout if the client never responds), and postjoin screens queue one after another instead of replacing each other; open_url/copy and ESC do not advance the queue. Screens can include an optional agreement checkbox (checkbox_label/checkbox_action) that permanently suppresses the screen for a player once ticked and dismissed; reset it with /bia screen reset <player> [id]
- Debug commands: preview individual dialogs in-game without going through the full login flow
/bia look <ip|player> shows IPinfo data for an address or UUID/type information for a player name; the free IPinfo JSON endpoint works without configuration
/bia settings edits common options in category sub-dialogs; saving reloads config and lang immediately
/bia config edits config.yml in a dialog, falling back to a section picker for large files; saving reloads config and lang immediately
- Startup check that warns in the console if AuthMe's own built-in dialog (
settings.registration.dialog.preJoin/postJoin.enable) is also enabled, to prevent two dialogs from appearing at once
Extras
- Custom inline icons (
custom_icons + <icons:name>): define named icons (atlas sprites, player heads, or full item icons) once in config.yml, then drop <icons:name> anywhere inside any dialog title, content, or button label to show it inline. Item-type icons can also be shown above a custom screen's content via that screen's icon: field
- Link buttons inside dialogs (open URL, copy to clipboard)
- Per-button click sounds: nearly every dialog button (submit, logout, agree, verify, resend, forgot password, custom screen buttons, etc.) can play its own Minecraft sound on click
- Welcome sent to the player after first login(like image canva in someone server discord) use wedhook of discord.
- ViaVersion support: players on older protocol versions fall back to AuthMe's normal flow automatically
Commands
| Command |
Permission |
Description |
/bia reload |
OP |
Reload config and lang |
/bia info |
- |
Show plugin version and status |
/bia add <player> |
authmebia.bypass |
Add player to bypass dialog list |
/bia rm <player> |
authmebia.bypass |
Remove player from bypass dialog list |
/bia recover <player> |
bia.admin.recover |
Force password reset on next login |
/bia screen <id> [player] |
OP |
Show a custom screen to a player |
/bia screen reset <player> [id] |
OP |
Reset a player's "closed forever" checkbox for a custom screen (omit id to reset all screens) |
/bia debug <feature> <value> |
OP |
Test features in-game (true/false/show, or register_first/register for discord) |
/bia notifier <toast> <player> show [seconds] |
OP |
Preview a configured toast on an online player without affecting its once-per-player state |
/bia titles <title> <player> show [seconds] |
authmebia.titles |
Preview a custom_titles entry on an online player; [seconds] optionally overrides its delay |
/bia look <ip|player> |
authmebia.look |
Show IP or player information |
/bia settings |
authmebia.settings |
Edit common settings in a dialog |
/bia config |
authmebia.config |
Edit config.yml in a dialog |
Players with authmebia.update receive an in-game message when a newer release is found after the startup check or when they join.
Debug features: captcha, email, register, login, recover, rule, discord.
Use show with captcha or email to preview those dialogs directly without going through the login flow.
/bia debug rule true shows the actual rule dialog in-game with the configured title, content, checkbox and button; ESC closes the preview (the real pre-join dialog cannot be closed with ESC), and agreeing there only prints a debug message.
/bia debug discord <register_first|register> sends a test notification to the configured webhook (ignores the enabled toggles, uses your own name and skin).
AuthMe API used
AuthMeBia hooks into AuthMe Reloaded through reflection rather than a compile-time API dependency.So it can run on any old-authme version.
| Class |
Usage |
fr.xephi.authme.api.v3.AuthMeApi |
Core operations: isRegistered, forceLogin, forceRegister, forceLogout, forceUnregister, checkPassword, changePassword, isAuthenticated, registerPlayer, getLastIp, getLastLoginTime |
fr.xephi.authme.data.auth.PlayerAuth |
Read player data: isPremium, getPremiumUuid, getEmail, getTotpKey, setEmail |
fr.xephi.authme.data.auth.PlayerCache |
isAuthenticated(name) — used for in-memory authentication checks |
fr.xephi.authme.data.VerificationCodeManager |
Mirror AuthMe's /unreg check (isVerificationRequired) and mark the session verified after the dialog code is correct (verify) |
fr.xephi.authme.datasource.DataSource |
Fetch PlayerAuth records (getAuth), check auto.session_autologin state (hasSession), persist email changes (updateEmail), and enforce settings.restrictions.maxRegPerIp (getAllAuthsByIp) |
fr.xephi.authme.mail.EmailService |
Check SMTP availability, send verification codes |
fr.xephi.authme.security.totp.TotpAuthenticator |
Verify TOTP codes for 2FA dialog (checkCode(PlayerAuth, String)) |
fr.xephi.authme.events.LoginEvent |
Detect successful login to complete async futures |
fr.xephi.authme.events.RegisterEvent |
Detect successful registration |
fr.xephi.authme.events.UnregisterByPlayerEvent / UnregisterByAdminEvent |
Reset per-session dialog state after an account is removed |
fr.xephi.authme.events.FailedLoginEvent |
Detect failed login |
AuthMeBia also optionally bridges to Floodgate's API the same way used in the AuthMe Reloaded API, only when auto.bedrock_autologin or a Bedrock dialog override is in use:
| Class |
Usage |
org.geysermc.floodgate.api.FloodgateApi |
Detect Floodgate/Bedrock connections |
org.geysermc.floodgate.api.player.FloodgatePlayer |
Look up a Bedrock player's linked account |
org.geysermc.floodgate.util.LinkedPlayer |
Read the verified linked Java UUID, if any |
Credit:
Behavioral inspiration for pre-join connection handling and session validation.
The implementation in AuthMeBia is original and contains no AuthMeReloaded source code. :P
Configuration
config.yml
# AuthMeBia configuration.
# Text fields support MiniMessage color/decoration tags, e.g. <red>, <#ff0000>, <bold>.
# Use {player} as a placeholder for the player's name where supported.
# Use \n inside a string to insert a line break.
# Language code for messages (disconnect/kick, errors, chat).
# Built-in options: en (English), vi (Vietnamese), zh (Chinese Simplified), de (German), ru (Russian), fr (French).
# To add your own, copy plugins/AuthMeBia/lang/en.yml to lang/<code>.yml and edit it.
# Reload with /bia reload.
lang: en
# Anonymous usage statistics via bStats (restart required).
bstats: true
# Check new version of authmebia ;V
update_checker: true
# IPinfo settings for /bia look. The default free endpoint works without configuration.
look:
ipinfo_url: "https://ipinfo.io/{ip}/json"
ipinfo_token: ""
# Automatic authentication skip for already-verified identities.
# Both flags default to false. With both false, behavior is identical to not
# having this section at all.
auto:
premium_autologin: false
bedrock_autologin: false
# link (default, safe) or geyser (unsafe unless Geyser's own online
# auth-type is enabled -- see the full comment in config.yml)
bedrock_mode: link
# Skips the dialog for a player already authenticated by AuthMe's own
# session feature. No effect unless AuthMe's settings.sessions.enabled
# is also true. Default: true.
session_autologin: true
dialog:
enabled: true
menu: true
min_protocol_version: 771
# Deprecated / no effect. Kept so existing configs do not error.
protocol_detect_wait_ms: 500
button_width: 200
# vertical (stacked) or horizontal (side by side)
button_layout: vertical
input_width: 200
register:
title: "<icons:trial_key> <#4287f5>Create Account</#4287f5>"
content: "<gray>Welcome, {player}! Please create a password to register.</gray>"
password_label: "Password"
confirm_password_label: "Confirm Password"
# Ask for an email during registration and store it as already verified.
# Works even when email.enabled is false.
email_add_nonverify: false
submit_sound: ""
# Post-join title sequence and the events allowed to play it.
titles_scripts: ""
titles_trigger: []
login:
title: "<icons:trial_key> <gold>Login</gold>"
content: "<gold>Welcome back, {player}!</gold>"
password_label: "Password"
submit_sound: ""
# Post-join title sequence and the events allowed to play it.
titles_scripts: ""
titles_trigger: []
forgot_password:
# Self-service password reset via the email already on file.
# Requires email.enabled or dialog.register.email_add_nonverify so an
# email is stored on the account.
enabled: false
button: "<yellow>Forgot Password?</yellow>"
button_sound: ""
email_title: "<gold>Forgot Password</gold>"
email_content: "<gray>Enter the email address registered to this account.</gray>"
email_label: "Email"
submit_button: "<green>Send Code</green>"
submit_sound: ""
invalid_email_error: "Incorrect email"
no_email_message: "<red>No email is linked to this account. Please contact an admin.</red>"
logout_button: "<red>Logout</red>"
logout_sound: ""
submit_register_button: "<green>Register</green>"
submit_login_button: "<green>Login</green>"
allow_close: true
# Only used when allow_close is false; delay in ticks before re-checking
# and re-showing an in-game dialog the player closed without a click.
reopen_delay_ticks: 10
# Optional overrides applied only to Bedrock (Geyser/Floodgate) players.
# Leave enabled: false to keep Bedrock identical to Java.
bedrock:
enabled: false
button_width: 300
input_width: 300
# "" = inherit auth_mode.mode. Options: "", password, pin, slider
auth_mode_override: ""
auth_mode:
# password | pin | slider
mode: password
pin:
length: 4
title: "<gold>Enter your PIN</gold>"
confirm_button: "<green>Confirm</green>"
delete_button: "<red>⌫ Delete</red>"
button_width: 100
button_sound: ""
slider:
length: 4
title: "<gold>Enter your code</gold>"
confirm_button: "<green>Confirm</green>"
button_width: 100
button_sound: ""
rule:
enabled: false
title: "<gold>Server Rules</gold>"
content: ""
checkbox_label: "<yellow>I have read and agree to the rules</yellow>"
agree_button: "<green>Agree</green>"
agree_sound: ""
discord:
enabled: false
# Must be an https:// URL.
webhook_url: ""
# First registration in the player's current join session (normally their
# first-ever join).
register_first:
enabled: true
title: "Newbie :D"
content: "**{player}** has registered. {player_avatar}"
# Any other registration, e.g. after an unregister in the same session.
register:
enabled: true
title: ""
content: "**{player}** has registered. {player_avatar}"
# MiniMessage works in title/content (converted to Discord markdown);
# {player} and {player_avatar} are replaced. The avatar is uploaded with the
# message, so no external avatar service is needed. The player profile must
# contain a skin texture; without one (offline-mode servers usually need a
# skin plugin) the message is sent without a thumbnail.
welcome_image:
enabled: false
links:
enabled: false
position: grouped
button_width: 200
buttons:
- enabled: true
label: "<#5865F2>Discord</#5865F2>"
action: open_url
value: "https://discord.gg/abc"
width: 200
- enabled: true
label: "<gray>{player}, copy IP</gray>"
action: copy
value: "play.example.com"
width: 200
captcha:
enabled: false
length: 5
title: "<gold>Verification</gold>"
content: "<gray>Type the code below to continue:</gray>\n<white><bold>{code}</bold></white>"
input_label: "Enter code"
submit_button: "<green>Verify</green>"
submit_sound: ""
trust_duration_seconds: 18000
login_attempts:
enabled: true
max_tries: 5
otp_attempts:
enabled: true
max_tries: 5
login_timeout:
enabled: true
seconds: 60
kick_message: "<red>Authentication timed out. Please reconnect.</red>"
recover:
title: "<gold>Reset Password</gold>"
content: "<gray>An admin has requested you set a new password.</gray>"
new_password_label: "New password"
confirm_password_label: "Confirm password"
submit_button: "<green>Set Password</green>"
submit_sound: ""
# Post-join title sequence and the events allowed to play it.
titles_scripts: ""
titles_trigger: []
success_message: "<green>Password updated successfully.</green>"
mismatch_message: "<red>Passwords do not match. Try again.</red>"
# Password-set dialog shown once, the first time a player joins via
# auto.premium_autologin or auto.bedrock_autologin. Has no effect if both
# of those are false.
premium:
# Master switch for the password-set dialog on first auto-login.
# When false, auto-logged-in players will not be prompted to set a custom
# password, keeping the internally generated placeholder password.
# Default: true. Note: this does not affect AuthMe's
# settings.restrictions.maxRegPerIp check, which is enforced separately
# before any dialog registration.
enabled: true
title: "<gold>Set Your Password</gold>"
content: "<gray>You were signed in automatically. Please set a password for your account (used if you ever join from a non-verified client).</gray>"
new_password_label: "New password"
confirm_password_label: "Confirm password"
submit_button: "<green>Set Password</green>"
submit_sound: ""
success_message: "<green>Password set successfully.</green>"
mismatch_message: "<red>Passwords do not match. Try again.</red>"
email:
# For email capture during registration without verification, see
# dialog.register.email_add_nonverify above.
enabled: false
# Replace AuthMe's chat-based /unreg code with a dialog.
unregister_verify: true
code_length: 6
resend_cooldown: 60
field_label: "Email"
verify_title: "<gold>Verify your email</gold>"
verify_content: "<gray>A code was sent to {email}.\nResend available in {cooldown}s.</gray>"
code_label: "Code"
verify_button: "<green>Verify</green>"
verify_sound: ""
resend_button: "<yellow>Resend code</yellow>"
resend_sound: ""
resend_button_cooldown: "<gray>Resend ({cooldown}s)</gray>"
cancel_button: "<gray>Cancel</gray>"
invalid_email_message: "<red>Please enter a valid email address.</red>"
send_failed_message: "<red>Could not send the email. Please contact an admin.</red>"
wrong_code_error: "Incorrect code"
totp_2fa:
# Shows a 2FA dialog after login if the player has TOTP enabled in AuthMe.
# Requires AuthMe 5.6+.
enabled: false
title: "<gold>Two-Factor Authentication</gold>"
content: "<gray>Enter your 6-digit authenticator app code:</gray>"
input_label: "Authenticator code"
submit_button: "<green>Verify</green>"
submit_sound: ""
wrong_code_error: "Invalid code"
# Named title/actionbar entries referenced as <titles:name>. Each entry
# supports title, subtitle, actionbar, and delay (seconds, 0.1-60).
# Preview one in-game with: /bia titles <title> <player> show [seconds]
custom_titles:
hello:
title: "<gold>Hello, {player}!</gold>"
subtitle: "<gray>Welcome to the server.</gray>"
actionbar: ""
delay: 3
welcome:
title: "<gradient:gold:yellow>Welcome!</gradient>"
subtitle: "<white>Have fun and play fair.</white>"
actionbar: "<yellow>Read /rules before playing.</yellow>"
delay: 3
# Custom dialog screens. Show with: /bia screen <id> [player]
# Reset a player's "closed forever" checkbox: /bia screen reset <player> [id]
# Button actions: close, open_url, copy, command, console
custom_screens:
- id: example
enabled: false
title: "<icons:trial_key> <gold>Server Notice</gold>"
content: "<gray>Welcome to the server, <yellow>{player}</yellow>!\nHave fun playing.</gray>"
allow_close: true
button_width: 200
# command (default), postjoin, or prejoin -- see doc/README.md
trigger: postjoin
sound_on_show: ""
# Optional title sequence for this screen (post-join only).
titles_scripts: ""
titles_trigger: []
# Optional agreement checkbox -- see doc/README.md for checkbox_action
checkbox_label: "<gray>Don't show this again</gray>"
checkbox_action: close
buttons:
- label: "<green>OK</green>"
action: close
sound: "minecraft:ui.button.click"
- label: "<#5865F2>Discord</#5865F2>"
action: open_url
value: "https://discord.gg/abc"
width: 200
ip_ban:
enabled: false
threshold: 10
ban_durations_seconds: [600, 1800, 3600, 86400]
# Named icons usable inline anywhere via <icons:name> (titles, content,
# button labels, custom screen text, etc.) -- see doc/README.md for the
# full sprite/player_head/item field reference.
custom_icons:
trial_key:
type: sprite
atlas: items
sprite: item/trial_key
settings_general:
type: sprite
atlas: items
sprite: item/comparator
settings_auto:
type: sprite
atlas: items
sprite: item/clock
settings_security:
type: sprite
atlas: items
sprite: item/iron_door
settings_appearance:
type: sprite
atlas: items
sprite: item/painting
settings_auth:
type: sprite
atlas: items
sprite: item/name_tag
config_section:
type: sprite
atlas: items
sprite: item/writable_book
ui_save:
type: sprite
atlas: items
sprite: item/lime_dye
ui_back:
type: sprite
atlas: items
sprite: item/arrow
ui_exit:
type: sprite
atlas: items
sprite: item/barrier
config_version: 5
notifications.toasts and integrations
# Custom notifications shown once per player per check.
notifications:
toasts:
- name: welcome_toast
check: first_register
title: "<gold>Welcome!</gold>"
content: "<gray>Thanks for joining the server.</gray>"
icon: "minecraft:player_head"
sound: "minecraft:entity.player.levelup 0.6 1.0"
delay: 5
frame: task
# Optional integrations with third-party item/resource-pack plugins.
# Each self-checks whether the target plugin is installed; if not, it does
# nothing and never affects login/registration.
integrations:
itemsadder:
enabled: false
nexomc:
enabled: false
oraxen:
enabled: false
contributors
评论 0
登录后参与评分
还没有评论,来抢沙发吧