How can I detect when a player joins/leaves a lobby?

Right now, I'm trying to make a lobby that shows four open slots for players. I wanna make it so when a player joins the lobby, one of the slots becomes their name on the other players' screens.
I also wanna implement kicking players. I know how to remove a player from a lobby, but I'm not quite sure how to have that execute anything on the kicked player's side, or have the player list update for anyone else in the lobby.
I don't know if there's a callback for that I don't know about, but any help would be greatly appreciated, thank you!

Using lobby events for should be what you need!
https://docs.unity.com/lobby/en/manual/lobby-events
Specifically the ILobbyChanges PlayerLeft/PlayerJoined changes and the KickedFromLobby callback

What if the game just crash?


Then it do be crashin