-
-
Notifications
You must be signed in to change notification settings - Fork 764
Description
Expected Behavior
Packet should be properly forwarded to client to ensure it gets the disconnect reason.
Velocity/proxy/src/main/java/com/velocitypowered/proxy/connection/backend/ConfigSessionHandler.java
Line 257 in 81deb1f
public boolean handle(DisconnectPacket packet) { |
Line 171 in 81deb1f
public boolean handle(DisconnectPacket packet) { |
If this helps in any way, after adding this myself:
MinecraftConnection playerConnection = this.serverConn.getPlayer().getConnection();
playerConnection.closeWith(DisconnectPacket.create(packet.getReason().getComponent(), playerConnection.getProtocolVersion(), playerConnection.getState()));
to the both session handlers, the issue has been resolved. Haven't encountered any side effects by using it there.
Or is there some specific reason it's not being forwarded?
Actual Behavior
If the backend server sends DisconnectPacket in the CONFIGURATION state (before or after clientbound FinishedUpdatePacket) the client is not getting the disconnect reason, and thus it's stuck on Reconfiguring... GUI title.
Steps to Reproduce
Send DisconnectPacket to the client in CONFIGURATION state on a backend server.
Plugin List
none
Velocity Version
[01:06:24 INFO]: Velocity 3.4.0-SNAPSHOT (git-81deb1ff-b521)
[01:06:24 INFO]: Copyright 2018-2023 Velocity Contributors. Velocity jest objęty licencją na warunkach GNU General Public License v3.
[01:06:24 INFO]: PaperMC - GitHub
Additional Information
No response