adaa9ca
Branches > main > adaa9ca > files / src / dev
Add status response
Commit: adaa9ca304618a22a1e6084f678c212942229c5f
Parent: abdef62
1 changed file:
src/net/bowmap/packet_handling.clj view file
@@ -12,10 +12,14 @@ (defmethod handle-packet :default [pk client] (prn "Unhandled packet:" pk)) -;; TODO I think this stateyness could absolutely be encoded in the packet itself... (defmethod handle-packet ::sp/handshaking [pk client] {::state/state (:intent pk)}) (defmethod handle-packet ::sp/status-request [pk client] {:response {::pk/id ::cp/status-response- :response {:to :do}}})+ :response {:version {:name "1.21.11"+ :protocol 774}+ :players {:max 1000+ :online 0}+ :description {:text "Bowmap!"}+ :enforcesSecureChat false}}})