Skip to content

Commit

Permalink
#3732: Fix protocol state issue
Browse files Browse the repository at this point in the history
  • Loading branch information
Outfluencer authored Aug 26, 2024
1 parent 79f85a2 commit 5fbcc6b
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@
import net.md_5.bungee.protocol.packet.Kick;
import net.md_5.bungee.protocol.packet.LegacyHandshake;
import net.md_5.bungee.protocol.packet.LegacyPing;
import net.md_5.bungee.protocol.packet.LoginAcknowledged;
import net.md_5.bungee.protocol.packet.LoginPayloadResponse;
import net.md_5.bungee.protocol.packet.LoginRequest;
import net.md_5.bungee.protocol.packet.LoginSuccess;
Expand Down Expand Up @@ -690,6 +691,13 @@ public void handle(LoginPayloadResponse response) throws Exception
disconnect( "Unexpected custom LoginPayloadResponse" );
}

@Override
public void handle(LoginAcknowledged loginAcknowledged) throws Exception
{
// this packet should only be sent after the login success (it should be handled in the UpstreamBridge)
disconnect( "Unexpected LoginAcknowledged" );
}

@Override
public void handle(CookieResponse cookieResponse)
{
Expand Down

0 comments on commit 5fbcc6b

Please sign in to comment.