Dynamic pricing

This guide will cover how to add dynamic prices to whatever item you want!

Demo

Setup

Download this addon and put it in your plugins folder! PlaceholderAPI is required to use.

CLICK TO DOWNLOAD

Quick Reference

All commands require the user to be opped

If you have ItemsAdder item or furniture, it requires a namespace in the format mynamespace:myitem, which you can see when for example giving yourself an ItemsAdder item.

CommandDescription

/furnish add [id] [price]

Adds a price for the given ID

/furnish remove [id]

Removes a price for the given ID

/furnish list

Lists all prices

/furnish reload

Reload the configs

Placeholders require PlaceholderAPI to be supported

PlaceholderDescription

%furnish_price_[ID]%

Returns the price of the given ID

Example uses

Displaying the price of a specific furniture

content:
  text:
  - 'This chair costs %furnish_price_chair%'

Displaying the price of a furniture that is beeing looked at

content:
  text:
  - '%furniture_name%'
  - 'Price: &a$%furnish_price_%furniture_id%%'
  - '&7(Click to purchase)'

Checking if player has more balance than what the furniture that is being looked at costs

conditions:
  conditions:
  # Check if players vault balance is greater than 
  # or equal ( >= ) the price of a furniture 
  - compare{ first=%vault_eco_balance%; oper=>=; second=%furnish_price_%furniture_id%% }

Last updated