Develop Guide
Get shop object
Get product object
Start buy a product
inventory
is Bukkit inventory object, for player's inventory, use player.getInventory() method.shop
is shop ID.product
is product ID.quick
is whether send message after buy (will still send if you enable send-message-after-buy option in config.yml)test
is whether take money or items from player, set it to true if you just want to know whether player has enough money or items.multi
is buy amount in one time, default set to 1.
Start sell a product
ableMaxSell
is whether if player don't have enough money or items for now multi(amount) value, we will try to get max amount that player able to sell. Use for sell all command.
Get player cache object
Can get player's buy times, sell times data and so on.
Get server cache object
Last updated