game-common / / PartyPlugin / canChangeReady /

canChangeReady #

abstract suspend fun canChangeReady(player: PartyPlayer, newReadyState: Boolean, party: Party, partyConfig: PartyConfig): Boolean

Called when receiving a change ready state request. Use to determine whether a player can change their ready state. Return true to allow Pragma to change their ready state to the new ready state, or return false to block the change.

Used by:

  • PartyService.setReadyStateV1

Parameters #


The player changing their ready state.


The new ready state the player wants to set.


The player’s current party


The current service-level PartyConfig.