game-common / pragma.party / PartyPlugin / onRemovePlayer /

onRemovePlayer #

open suspend fun onRemovePlayer(party: Party.Party, removedPlayer: Party.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 #

party

The party the player has been removed from.

removedPlayer

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