bce7b6a
Branches > main > bce7b6a > files
Complete login phase
Commit: bce7b6a7c81a40fb86782560e5dd6cc3ccef3d1b
Parent: 55d36f2
3 changed files:
src/net/bowmap/server/game/handle.clj view file
@@ -27,3 +27,13 @@ [player [{::packet/id ::clientbound/pong-response ::p/timestamp timestamp}]])++(defmethod handle-packet ::serverbound/login-start [player {::p/keys! [uuid username]}]+ [(assoc player+ ::p/uuid uuid+ ::p/username username)+ [{::packet/id ::clientbound/login-success+ ::p/game-profile {::p/uuid uuid+ ::p/username username+ ::p/game-profile-properties []}+ ::p/session-uuid (random-uuid)}]])src/net/bowmap/server/protocol/clientbound_packets.clj view file
@@ -12,7 +12,8 @@ ::phase/login [::disconnect nil ::encryption-request nil- ::login-success nil+ ::login-success [::p/game-profile game-profile>+ ::p/session-uuid uuid>] ::set-compression nil ::login-plugin-request nil ::cookie-request nil]src/net/bowmap/server/protocol/serverbound_packets.clj view file
@@ -15,7 +15,8 @@ [::status-request [] ::ping-request [::p/timestamp long<]] ::phase/login- [::login-start nil+ [::login-start [::p/username string<+ ::p/uuid uuid<] ::encryption-response nil ::login-plugin-response nil ::login-acknowledged nil