game / pragma.inventory / InventoryService / grantItemsOperatorV1 /

grantItemsOperatorV1 #

suspend fun grantItemsOperatorV1(session: OperatorSession, request: InventoryRpc.GrantItemsOperatorV1Request): InventoryRpc.GrantItemsOperatorV1Response

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

Plugins

  • InstancedItemPlugin.newInstanced
  • StackableItemPlugin.onUpdate

PragmaResultErrors

  • 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.