Sell Wands

Sell Wands

Add-on

The Sell Wands add-on, a wand that sells a container's contents in one click.

View as Markdown ·

On this page

#Information

The Sell Wands add-on adds a wand that sells everything in a container with one right-click. Prices are read from one of your shops, so currencies, stock, limits, conditions, actions and sell boosters all apply as they do in the shop menu. Items the shop does not buy stay in the container.

Each wand has a number of uses, or never runs out.

#Installation

To install this add-on, drag and drop the jar file into the PhoenixShop/addons folder, then restart your server.

circle-exclamation

The add-on requires the Premium edition. On Lite it refuses to load and the console names the jar to remove.

#Files

File What it holds
PhoenixShop/addons/SellWands/config.yml The shop the wand sells into, the containers it works on and the look of the wand.
PhoenixShop/translations/translations.<lang>.yml The add-on messages, under the sellwands section.

#Commands

Command Description
/sellwand give <player> [uses] Gives an online player a sell wand. Without uses, the default from the config is used. -1 gives a wand that never runs out.

/sellwands works as an alias.

#Permissions

Permission What it allows
phoenixshop.sellwand.give Giving sell wands.

Using a wand needs no permission of its own. When the wand's shop has a permission, only players who have it can use the wand.

#Wands

#Using a wand

Hold the wand in the main hand and right-click one of the listed containers. Everything in it that the shop buys is sold in one go and the player is told what they earned.

Case Result
Nothing in the container sells No use is spent.
A region plugin blocks opening the container The wand does nothing, so it cannot sell out of someone else's protected chest.
The container is not in the list The click works as a normal right-click.

The items pass through the player's inventory on their way to the shop, so a player with a full inventory cannot sell and is told so.

#Uses

Every right-click that sells something spends one use, and the uses left are shown in the wand's lore. A wand on its last use is gone once used. A wand with -1 uses never runs out.

Wands are recognised by a hidden tag, not by their name or material, so renaming one in an anvil does not stop it working.

#Settings

circle-info

Everything below is set in addons/SellWands/config.yml. The add-on has no editor.

YAML
shop: shop
uses: 50
containers:
  - CHEST
  - TRAPPED_CHEST
  - BARREL
  - SHULKER_BOX
wand:
  material: BLAZE_ROD
  display-name: '&6Sell Wand'
  lore:
    - '&7Right-click a container to sell'
    - '&7everything inside it.'
    - ''
    - '&fUses Left: &e%uses%'
  unlimited-label: '&aUnlimited'
Option What it does
shop The identifier of the shop every wand sells into.
uses The uses of a new wand when /sellwand give is run without a number. -1 for unlimited.
containers The blocks the wand works on. SHULKER_BOX covers every dyed shulker box as well.
wand.material The item the wand is made of.
wand.display-name The name of the wand.
wand.lore The lore of the wand. %uses% shows the uses left.
wand.unlimited-label What %uses% shows on a wand that never runs out.

A change to the look applies to new wands, and to an existing wand the next time it is used.

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