10ffca1

Bowmap · bowmap.git · Tickets

Branches > main > 10ffca1 > files

Add MOTD to status response packet

Grahp, 2026-09-14

Commit: 10ffca1b2366bf95e2405874104f1c7fcab64efe
Parent: 6bcddb0

1 changed file:

src/net/bowmap/server/protocol/writers.clj modified (view file)

@@ -4,6 +4,7 @@    See https://minecraft.wiki/w/Java_Edition_protocol/Packets#Data_types"   (:require    [clojure.data.json :as json]+   [medley.core :refer [assoc-some]]    [net.bowmap.server.protocol.schema :as p])   (:import    [io.netty.buffer ByteBuf]@@ -37,9 +38,12 @@ (defn json-> [buf s]   (string-> buf (json/write-str s))) -(defn status-response-> [buf {::p/keys! [version-name protocol]}]-  (json-> buf {:version {:name version-name-                         :protocol protocol}}))+(defn status-response-> [buf {::p/keys! [version-name protocol]+                              ::p/keys [motd]}]+  (json-> buf+          (assoc-some {:version {:name version-name+                                 :protocol protocol}}+                      :description motd)))  (defn table-> [schema]   (fn [buf m]