/* Broadcast before adding player to list (to avoid announcing the
* new player to itself). */
const player_data = JSON.stringify({ id: player.id, name: player.name });
this.broadcast_event("player-enter", player_data);
/* Broadcast before adding player to list (to avoid announcing the
* new player to itself). */
const player_data = JSON.stringify({ id: player.id, name: player.name });
this.broadcast_event("player-enter", player_data);