game-common / pragma.party / PartyPlugin / handlePlayerEnterMatchmakingRequest /
handlePlayerEnterMatchmakingRequest #
open suspend fun handlePlayerEnterMatchmakingRequest(party: Party.Party, requestingPlayer: Party.PartyPlayer)
Called when receiving a player request to enter a party into matchmaking.
The party will automatically be entered into matchmaking after the plugin completes, triggering the PartyApi::OnEnteredMatchmaking event on each player’s game client.
To prevent the party from entering matchmaking, throw an application error.
Parameters #
party | The party to be entered into matchmaking. |
requestingPlayer | The player requesting to enter the party into matchmaking. |