1
0
mirror of https://github.com/p2r3/bareiron.git synced 2025-10-02 07:35:08 +02:00

add player join messages

This commit is contained in:
p2r3
2025-08-21 17:03:26 +03:00
parent 70c1fb0e7a
commit 33c564e0fc
3 changed files with 23 additions and 0 deletions

View File

@@ -901,6 +901,21 @@ int cs_clientStatus (int client_fd) {
return 0;
}
int sc_systemChat (int client_fd, char* message, uint16_t len) {
writeVarInt(client_fd, 5 + len);
writeByte(client_fd, 0x72);
// String NBT tag
writeByte(client_fd, 8);
writeUint16(client_fd, len);
send_all(client_fd, message, len);
// Is action bar message?
writeByte(client_fd, false);
}
// S->C Registry Data (multiple packets) and Update Tags (configuration, multiple packets)
int sc_registries (int client_fd) {