108a097

Branches > main > 108a097 > files / src / net

Do not allow players with duplicate uuids to join the server

Grahp, 2026-08-20

Commit: 108a097dcb51ccdc7370a52fd21ef2d9e190be30
Parent: af56f7e

1 changed file:

src/net/bowmap/network/handle.clj modified (view file)

@@ -154,7 +154,9 @@                                      :enforce-secure-chat? true})      (dosync-      (commute server/players assoc uuid player))+      (if (@server/players uuid)+        (throw (Exception. "Player tried to join with an existing UUID"))+        (commute server/players assoc uuid player)))      (client/send-clientbound-packet client                                     {::pk/id ::clientbound/game-event