game / pragma.inventory / InventoryService / updateItemsOperatorV1 /

updateItemsOperatorV1 #

suspend fun updateItemsOperatorV1(session: OperatorSession, request: InventoryRpc.UpdateItemsOperatorV1Request): InventoryRpc.UpdateItemsOperatorV1Response

Lets operators update multiple items for a given player by list of InventoryCommon.ServerItemUpdateV2.

Plugins

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

PragmaResultErrors

  • PragmaError.InventoryService_InstanceNotFound - When the item to update is not found in the player’s inventory.
  • PragmaError.InventoryService_ContentNotFound - When an update entry id is sent on the request but does not map to a valid update entry.
  • PragmaError.InventoryService_RequirementsNotMetError - When the requirements related to the update entry cost are not met.
  • PragmaError.InventoryService_GrantError - When db errors.
  • PragmaError.InventoryService_GetError - When db retrieve fails.