Show why you were disconnected in the main menu; reset-world / reload-save make all players reconnect automatically

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-09-27 10:46:45 +02:00
co-authored by Claude Opus 5.5
parent 85fbb8a3ce
commit 08844b18ac
4 changed files with 37 additions and 5 deletions
+2 -1
View File
@@ -36,7 +36,8 @@ public enum MsgType : byte
VarSync = 29, // Fahrzeugzustand: int n, je [int key, byte typ, wert]
Teleport = 30, // Admin holt einen Spieler zu sich: 3 float Position
Pong = 31, // Antwort auf Ping mit demselben Zeitstempel (Laufzeit messen)
SpawnItem = 32 // Admin spawnt ein Item: string Item-Name, 3 float Position, 4 float Drehung
SpawnItem = 32, // Admin spawnt ein Item: string Item-Name, 3 float Position, 4 float Drehung
Reconnect = 33 // Server -> Client: string Meldung; Client geht ins Menü und verbindet sich neu (z.B. Welt zurückgesetzt)
}
public readonly record struct Message(MsgType Type, byte[] Payload)