game-common / / PartyPlugin / onRemovePlayer /

onRemovePlayer #

abstract suspend fun onRemovePlayer(party: Party, removedPlayer: PartyPlayer, removalReason: PartyRpc.RemovalReason)

Called after a player has been removed from the party. Use to perform any necessary updates to the party state. Perform any state mutations directly on the party object. The provided player will have already been removed from the party.

Used by:

  • PartyService.leaveV1
  • PartyService.onSessionTerminated

Parameters #


The party the player has been removed from.


The player that was removed from the party, including all of their selections.