game-common / pragma.party / PartyPlugin / handlePlayerSendInviteRequest /
handlePlayerSendInviteRequest #
open suspend fun handlePlayerSendInviteRequest(party: Party.Party, requestingPlayer: Party.PartyPlayer, inviteePlayerId: <ERROR CLASS>)
Called when receiving a player request to send a party invite. Use to determine whether the player should be allowed to send the party invite by calling Party.Party.sendInvite.
By default, allows any player in the party to send invites.
Used by:
- PartyService.sendInviteV1
Parameters #
party | The player’s current party |
requestingPlayer | The player attempting to send the invite |
inviteePlayerId | The player id of the player being invited |