Items

Items

Adding items to a category, what they show, what a purchase gives and the commands it runs.

View as Markdown ·

On this page

circle-info

Items are saved in their category's file, under its list of items.

#Add an Item

Left-click the lime stained glass in Editor > Shops > Shop > Category > Items to create an item. It gets the next free item_<number> identifier and its editor opens straight away.

Edit Category (Items)

Items (New Item)

Pick an item up onto your cursor first and click the glass with it to add that exact item, name, lore, enchantments and custom data included. The stack's size becomes the item's amount, and the item is taken from your cursor. Clicking with an empty cursor creates an item with iron bars as a placeholder, to be replaced from its display item.

circle-info

An item added from your cursor is also added as its first purchase item, and chat tells you so. That is what a buyer receives and what a seller has to hand in, so later changes to the display item's name or lore do not change it.

#Add Multiple Items

Shift + left-click the lime stained glass to add many items at once. Put the items in the top five rows and press Add Items: every stack becomes its own item, added exactly as if you had clicked the glass with it on your cursor. Cancel, or closing the menu, gives the items back. This is a Premium feature.

#Items List

Every item in the list is shown as its display item, with its lore, then its buy price and sell price in the currency it uses, and the amount one purchase gives. A price of 0 is left off, and a spawner shows the mob it spawns. Left-click an item to edit it, right-click it to delete it after a confirmation.

Items (Grass Block)

The order of the list is the order players see in the category's menu.

#Reordering

Turn Reordering on, click the item you want to move, then click the item it should swap places with. The New Item slot is hidden while reordering is on.

Items (Reordering)

#Display Item

The display item is what players see in the category's menu. When the item has no purchase items and no purchase commands, it is also what a purchase gives.

Drop an item on the slot to replace the display item. The dropped item's name, lore and data are taken as they are, and any name, lore or property set in the editor before is cleared. If the item had no purchase items yet, the dropped item is also added as the first one.

Display Item

#Display Name

The name the item carries in the shop. Color codes are supported. Left empty, the item keeps its own name.

Display Item (Display Name)

#Display Lore

The lore shown under the name. Color codes are supported. Left empty, the item keeps its own lore.

Display Item (Display Lore)

#Amount

How many are in the display item, from 1 to 64. It is also the size of one lot: selling one lot takes this many matching items from the player,. The display item itself is never given; set purchase items for that.

Display Item (Amount)

#Item Properties

RGB color, item flags, banner patterns, enchantments, custom model data or item model, tooltip style, enchantment glint, potion effects, armor trim and spawner type. They have their own page: Item Properties.

Display Item (Item Properties)

#Purchase Items

#What a Purchase Gives

Purchase items are the real items a player receives when buying this entry. The display item is only what the shop shows, and is never given. An entry can hold as many as you want, and every one of them is given on each purchase.

Edit Item (Purchase Items)

Purchase items Purchase commands A purchase gives
Set Any Every purchase item, then runs the commands.
Empty Set Nothing but the commands.
Empty Empty Nothing. The entry cannot be bought, and the editor warns on the Purchase Items option.

Buying several at once multiplies each purchase item's amount by how many were bought. The player needs room for all of them, or the purchase is refused and nothing is taken.

#Add a Purchase Item

Click an item in your own inventory to pick it up, which turns the list green, then click anywhere in the list to add it. The item is taken from your cursor, exactly as it is, enchantments and custom data included.

Purchase Items (Add Item)

Every purchase item in the list shows its lore and amount. Left-click one to edit it, right-click it to receive a copy.

#Edit a Purchase Item

Each purchase item has its own display name, lore, amount and item properties, separate from the display item's.

Purchase Items (Grass Block)

#Purchase Item

Drop an item on the slot to replace this purchase item, keeping its amount. Right-click it to receive a copy.

Purchase Item

#Display Name & Display Lore

The name and lore the given item carries. Left empty, the item keeps its own.

Purchase Item (Display Name)

Purchase Item (Display Lore)

#Purchase Item Amount

How many of this item one purchase gives, from 1 to 64.

Purchase Item (Amount)

#Remove

Removes this purchase item from the entry and hands it back to you.

Purchase Item (Remove)

#Selling

A player sells this entry by handing in items that match its Sell Item, set from the item editor. Without a sell item, they have to match the display item. How close the match has to be is the item's Selling Rule.

Edit Item (Sell Item)

One sale takes the sell item's amount of matching items and pays the sell price once, so an entry can sell a block of diamonds but buy back single diamonds. Without a sell item, one sale takes the display item's amount.

In the item editor, drop an item on the Sell Item slot to set it, left-click it to edit its name, lore, amount and properties, and right-click it to get a copy. Its Remove button clears it, so the display item is matched again.

#Purchase and Sell Commands

#Purchase Commands

Commands run when a player buys this entry, after the purchase items are given. An entry with purchase commands and no purchase items gives no items at all, which is how a rank, a kit from another plugin or a balance is sold.

Edit Item (Purchase Commands)

#Sell Commands

Commands run when a player sells this entry, after they are paid.

Edit Item (Sell Commands)

#Add a Command

Left-click the lime stained glass and type the command, without the slash. A dialog box asks for it, and on server versions that don't support dialogs it falls back to the chat. Left-click a command in the list to remove it.

Purchase Commands (Add Command)

Commands run from the console. Start one with * to run it as the player instead, such as *spawn.

#Placeholders

Placeholder Description
%player% The name of the player.
%uuid% The UUID of the player.
%amount% How many times the entry was bought or sold in this transaction.
%item% The name of the display item.
%price% The total price of the transaction.
%currency% The name of the currency.
%shop% The display name of the shop.

PlaceholderAPI placeholders work too when PlaceholderAPI is installed.

circle-info

Each command runs once per transaction, however many were bought or sold at once. %amount% counts those purchases, not items: buying 3 of an entry whose display amount is 16 fills in 3.

My Cart
Spider

Your cart is empty

Looks like the spiders padded through here. Pick a plugin and it will show up here. Continue shopping