game / pragma.inventory / InventoryService / operatorGrantRewardsV0 /

operatorGrantRewardsV0 #

suspend fun operatorGrantRewardsV0(session: OperatorSession, request: InventoryRpc.OperatorGrantRewardsV0Request): InventoryRpc.OperatorGrantRewardsV0Response

Grants a list of InventoryCommon.RewardGrant grants to a player.

Plugins

  • InstancedItemPlugin.newInstanced - Invoked when player is rewarded an instanced item.
  • RewardSelectorPlugin.select - Invoked when rolling rewards from a reward bag.
  • StackableItemPlugin.onUpdate called for stackable item grants and updates

PragmaResultErrors

  • PragmaError.InventoryService_PlayerIdNotFound - If player ID not found.
  • PragmaError.InventoryService_GrantError - When db errors.
  • PragmaError.InventoryService_GetError - When db retrieve fails.