forked from EXTERNAL/bareiron
send server brand during login
* send server brand to client * send brand regardless of `0x02` being recieved by server or not * send brand regardless of `0x02` being recieved by server or not + if statement to match previous lines * ifdef check for brand sending * commit main.c for ifdef check (i forgot) * commit main.c for ifdef check (i forgot) * change sc_pluginMessage to sc_sendPluginMessage - added params to it for use in other cases - other changes to fit PR reviews * revert .gitignore * revert unrelated changes * send byte instead of varint for constant packet id * gate declaration of brand string behind ifdef * make logging consistent with codebase --------- Co-authored-by: p2r3 <p2r3@p2r3.com>
This commit is contained in:
@@ -35,6 +35,11 @@ uint32_t server_ticks = 0;
|
||||
char motd[] = { "A bareiron server" };
|
||||
uint8_t motd_len = sizeof(motd) - 1;
|
||||
|
||||
#ifdef SEND_BRAND
|
||||
char brand[] = { "bareiron" };
|
||||
uint8_t brand_len = sizeof(brand) - 1;
|
||||
#endif
|
||||
|
||||
uint16_t client_count;
|
||||
|
||||
BlockChange block_changes[MAX_BLOCK_CHANGES];
|
||||
|
Reference in New Issue
Block a user