Thank you!
The block placement is handled by the server, so if you put a block in a cell and another player at the same time does the same thing in the same cell, the server will handle the block placement request that come first, when the second request is analyzed the grid will already have the space occupied by the first player so the server will send to the client a message to advise that that cell is occupied, and you will not be able to place the block.