game / pragma.inventory / InventoryService / grantItemsServiceV2 /

grantItemsServiceV2 #

suspend fun grantItemsServiceV2(session: ServiceSession, request: InventoryRpc.GrantItemsServiceV2Request): InventoryRpc.GrantItemsServiceV2Response

Grants a list of InventoryCommon.ItemServerGrantV1 item grants to a player.


  • InstancedItemPlugin.newInstanced
  • StackableItemPlugin.onUpdate called for stackable item grants and updates


  • IllegalStateException - If an item grant does not have a specific item set on it.
  • PragmaError.InventoryService_GrantError - When db errors.
  • PragmaError.InventoryService_GetError - When db retrieve fails.