🤑Product

Syntax

cost: #
name: TEXT
actions: {}
economy: TYPE
amount_select: BOOLEAN
shopping_cart: BOOLEAN
check_full_inventory: BOOLEAN
purchase_conditions: {}
view_conditions: {}
live_economy:
...
item:
...

Cost

Cost of the item. Cost can be live update with the live economy feature.

cost: #

Economy

Select a specific economy type for thr product from config.

economy: #

Purchase conditions

purchase_conditions: 'EXPRESSION'

View conditions

view_conditions: 'EXPRESSION'

Actions

actions: 'EXPRESSION'

Live economy

Link your product price with website stores like Tebex or CraftingStore

Syntax

live-economy:
  type: TEXT
  api-key: TEXT
  product-id: #
  exchange-rate:
    divider: #.#
    amount: #

Type Type can be CRAFTINGSTORE (https://craftingstore.net) or TEBEX (https://tebex.io)

API key Your applicaiton API key

Product id Package id of your product on the webstore

Exchange rate: This means that for example 1$ is 10 when you set divider to 0.1 and amount to 1

Amount selection menu

If you want to provide your players to select an amount of purchased item, you can! Just put to the product settings sections this boolean

amount_select: true

Now everything works! But if you want to give the player selected amount of items, you can use placeholder %amount% in console and player command actions.

Shopping cart

If you want to disable shopping cart only for this product, you can disable it just with this line.

shopping_cart: false

Full inventory check

If yo uwant to check, if player has full inventory, you can use this method. If you will enable the check, player will not be able to purchase the product.

check_full_inventory: true

Last updated