Skip to content

Adding items to database

PizzaThatCodes edited this page Nov 28, 2023 · 1 revision

Once the plugin is up and running, you will need to add items to buy/sell!

The command you will be using is: /addItem (Buy Price) (Sell Price) (Shop Type) (Shop Category) (Item Amount) (Buy Limit) (Sell Limit)

Here is what each argument means:

Buy Price: The price that users will have to pay to get the item (could set to 0 if your just selling).

Sell Price: The price that users will get for the items they are selling (could be set to 0 if your just buying).

Shop Type: If the user can buy/sell/both, this is from the user's perspective, so if you set it to Buy, the player can buy that item, if it's Sell, the user can sell their items.

Shop Category: This is what category the item will be under (You can create as many categories in /plugins/DailyShop/config.yml, this might change later on though), currently, each item can only have one category. So if you want the same item in multiple categories, you will need to do the command twice and change the category.

Item Amount: This is the amount of items per buy/sell, you can set this to greater than 64, but as of this time, if someone has a slot available and buys 70 items, the items should drop to the ground (Will find a way around this at some point).

Buy Limit: This is the amount of times people can buy the item. Please note that if the Item Amount is 16, and the buy limit is 4, the user is able to get a total of 64 items (Item Amount * Buy Limit).

Sell Limit: This is the amount of times people can sell the item. Please note that if the Item Amount is 16, and the sell limit is 4, the user is able to sell a total of 64 items (Item Amount * Buy Limit).