MCBE
OverviewPacketsDisconnect
ID 0x05 · 5Server → ClientConnection

Disconnect

Ends the connection. The reason code drives the Ore UI disconnect screen; unless the screen is skipped, an optional message is shown with it.

disconnect.bin
05              // header
4A              // varint32 zigzag reason 37 (MultiplayerDisabled)
00              // hide screen = false
18 "You are banned" // varuint32 len + utf-8
00              // filtered message ""

Structure

FieldTypeDescription
Reasonvarint32DisconnectFailReason enum, zigzag encoded.
Hide Disconnection ScreenboolSkip the disconnect screen.
Message
if !HideDisconnectionScreen
stringText shown on the disconnect screen.
Filtered Message
if !HideDisconnectionScreen
stringProfanity-filtered Message.

Structure of DisconnectPacketMessages

FieldTypeDescription
Messagestring
Filtered Messagestring

Reason (selected) values

0 Unknown
1 CantConnectNoInternet
2 NoPermissions
8 VersionMismatch
23 SessionNotFound
25 ServerFull
32 Timeout
33 ServerNotFound
34 OutdatedServer
35 OutdatedClient
36 NoPremiumPlatform
46 NotAuthenticated
55 Kicked
56 KickedForExploit
57 KickedForIdle
68 Shutdown
73 NetherNetProtocolVersion
90 BadPacket
136 NonceMissing
148 MissingStructureData (new in 2193)
149 UnsupportedTransport (new in 2193)

Notes

  • The reason enum has grown to 150 values and is varint32 (zigzag) encoded.
  • HideDisconnectionScreen true sends the player straight back to the main menu.
  • FilteredMessage is the profanity-filtered variant; clients with "Filter Profanity" enabled prefer it over Message.