Skip to content

[Bug] preJoin 对话框在代理自动登录时依然弹出 #3123

Description

@Sui-xie

What behaviour is observed?

版本:Velocity-4.1.0-21,AuthMe-6.0.0
Paper-26.2-112,AuthMee-6.0.0

如何复现
Velocity 环境,后端开启 Hooks.bungeecord: true,密钥匹配
代理端开启 autoLogin: true
后端 dialog.preJoin.enable: true(默认值)
玩家进入后端服务器,自动登录成功后切换到另一个后端
跨服时 preJoin 对话框依然弹出

我的临时措施
我关闭了dialog ui 的登入方式,使用传统方式登入就可以临时规避该问题

实际影响
玩家已经自动登录了,但屏幕上仍显示登录对话框。玩家如果点击返回,那么会直接中断连接,让玩家每次切换服务器都需要重新输入密码。

我使用的是 PostgreSQL 数据库,不过模板只列出了 MySQL/SQLite。该问题与具体使用的远程 SQL 方言无关。
我使用了AI工具脱敏了我的配置文件,所以有些地方可能看起来有些奇怪

I am using a PostgreSQL database, although the template only lists MySQL/SQLite. The issue appears to be unrelated to the specific remote SQL dialect used.
Please note that I used an AI tool to sanitize/redact my configuration file, so some parts may look slightly unusual.

Expected behaviour

The plugin should correctly recognize the player's logged-in status. For players already authenticated via the Velocity proxy, the preJoin dialog verification process should be skipped on the backend server.

To Reproduce

Set up a Velocity proxy environment with Hooks.bungeecord: true enabled on the backend and matching forwarding secrets.
Enable autoLogin: true in the proxy configuration.
Ensure dialog.preJoin.enable: true (default value) is set on the backend server.
Have a player join the backend server and successfully auto-login.
Switch the player to another backend server (cross-server transfer).
Observe that the preJoin dialog still pops up despite the player already being authenticated.

Plugin list

Velocity:
AuthMe6.0.0
minimotd-2.2.4

Paper:
AuthMe - 6.0.0
CommandPanels - 4.2.1
Dominion - 4.9.4-release-lite
GSit - 3.4.1
LiteAnnouncer - 1.3.4.1
LuckPerms - 5.5.71
OpenEco - 1.6.1
PlaceholderAPI - 2.12.3
PlayerDataSyncReloaded - 26.7-Release
QuickShop-Hikari - 6.2.0.11
SimpleScore - 4.2.0
ShiftFCmd - 1.8.2
Vault - 1.7.3
YuRandomTeleport - 1.1.2.2

Server Implementation

BungeeCord

Database Implementation

MySQL

AuthMe Version

6.0.0

Error log (if applicable)

None

Configuration

https://gist.github.com/Sui-xie/b4ee88c7df6715fd15720f11674a3cec

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions