Перейти к основному содержимому

Shop Definition

The Shop Definition configures the inventory, pricing model, and stock rules for a shop.

General Settings

titleString

GUI Title.

rowsInt

GUI Size.

currencyEnum

Economy provider: VAULT, PLACEHOLDER, POINTS, etc.

taxesDouble

Tax rate added to purchase price (e.g. 0.1 = 10% tax).

resetPolicyEnum

When to restock: NONE, DAILY, WEEKLY, INTERVAL.

artifact

"> Storage artifact to save dynamic state.

Items Configuration

items

"> The products sold in this shop.

Shop Item Structure

itemItem

The item to trade.

limitPerPlayerInt

Max purchases per player per reset interval (0 = unlimited).

strategyPriceStrategy

Pricing logic.

Price Strategy

priceDouble

Base Buy Price (at 100% stock).

sellPriceDouble

Base Sell Price (at 100% stock).

stockMaxInt

Maximum stock level.

  • 0: Infinite stock (Static Price).
  • >0: Dynamic stock (Dynamic Price).

stepDouble

Price elasticity. How much price changes per missing stock unit.

minDouble

Minimum possible price cap.

maxDouble

Maximum possible price cap.