A plugin that allows your players to sell their inventory with a simple command or automatically using shift or when their inventory gets full:
/sell- Sell the inventory/shiftsell- Toggle the Shift-Sell status/autosell- Toggle the Auto-Sell status/herovender reload- Reload the plugin(configuration and messages)/herovender item- See the ID of the item the player is holding/herovender additem <shop> <price>- Adds the item in hand to a shop
herovender.shiftsell- Permission to activate the shift-sellherovender.autosell- Permission to activate the auto-sell
:player:- The player name
:invoice-total:- The total ammount of money the player is receiving for the items:invoice-total-formatted:- The total ammount of money the player is receiving for the items, with prety formatting:invoice-item-count:- The total amount of items the player sold
:delay:- Time the player has to wait to be able to sell again, in miliseconds:delay-formated:- Time the player has to wait to be able to sell again, in seconds, formated with two decimals
:price:- The unit price of the item:price-formatted:- The unit price of the item, formated with two decimals
commands:
sell:
name: sell
aliases:
- sellall
herovender:
name: herovender
usage: '&bHeroVender &7- &a/herovender <reload>'
# Configure the auto-sell
autosell:
# Strategy to use for auto-selling, available strategies:
# https://github.com/heroslender/HeroVender/tree/master/src/main/java/com/heroslender/herovender/autosell/AutoSellStategy.java
strategy: "PICKUP_ITEM"
settings:
# Is it required for the inventory to be full in order to sell?
require-inventory-full: true
# If the strategy is set to TIMER, this is the delay to use between checks
timer-delay: 10
bonus:
1:
permission: herovender.vip
name: VIP bonus
bonus: 0.08
2:
permission: herovender.vip.plus
name: Bonus VIP+
bonus: 0.15
delay:
1:
permission: herovender.default
delay: 10000
2:
permission: herovender.vip
delay: 1000
3:
permission: herovender.staff
delay: 0
shops:
default:
items:
CARROT:
item: minecraft:carrot
price: 2.0
test:
price: 1.0
ignore-durability: false
item:
==: org.bukkit.inventory.ItemStack
DataVersion: 4440
id: minecraft:golden_carrot
count: 1
components:
minecraft:lore: '[{color:"gray",text:"A very lucky apple."},{color:"yellow",text:"Found
in the farm."}]'
minecraft:custom_name: '{color:"gold",text:"Golden Apple of Luck",italic:false}'
schema_version: 1
zombie:
permission: shop.zombie
inherits:
- default
items:
CARROT:
item: minecraft:carrot
price: 5500
ROTTEN_FLESH:
item: ROTTEN_FLESH
price: 1500number-formatting: K;M;B;T;Q
sell:
autosell:
'on': <green>You have activated the Auto-Sell!
'off': <red>You have deactivated the Auto-Sell!
chat:
sold: ''
no-items: ''
actionbar:
sold: <green>You sold <gray><invoice-item-count> <green>for <white><invoice-total-formatted><green>!
no-items: <red>You don't have any items that can be sold!
shiftsell:
'on': <green>You have activated the Shift-Sell!
'off': <red>You have deactivated the Shift-Sell!
chat:
sold: <green>You sold <gray><invoice-item-count> <green>for <white><invoice-total-formatted><green>!
no-items: <red>You don't have any items that can be sold!
delay: <red>You must wait <delay-formated> to sell again!
actionbar:
sold: ''
no-items: ''
delay: ''
command:
chat:
sold: <green>You sold <gray><invoice-item-count> <green>for <white><invoice-total-formatted><green>!
no-items: <red>You don't have any items that can be sold!
delay: <red>You must wait <delay-formated> to sell again!
actionbar:
sold: ''
no-items: ''
delay: ''