Buttons
All information about the buttons
Before starting the configuration of the plugin, it is important to understand how zMenu works. For this you can look at this: https://docs.zmenu.dev/plugins-files#basic_inventory.yml Here you will find all the important information about how zMenu works.
All button functions can also be used here: https://docs.zmenu.dev/configurations/buttons
zShop add 9 new buttons. Tout les boutons de zShop vont avoir le prefix ZSHOP.
Items
ZSHOP_ITEM Allows you to sell or buy items.
type: ZSHOP_ITEM
sellPrice: <price>
buyPrice: <price>
maxStack: <max stack size>
lore: <custom lore>
giveItem: <boolean>
enableLog: <boolean>
affectByPriceModifier: <boolean>
buyCommands: <string list>
sellCommands: <string list>
mob: <entity type>
economy: <economy name>
serverSellLimit: <limit>
serverBuyLimit: <limit>
playerSellLimit: <limit>
playerBuyLimit: <limit>
inventoryBuy: <specify the purchase inventory> # By default the inventory will be the one present in the config.yml
inventorySell: <specify the sell inventory> # By default the inventory will be the one present in the config.yml
unstackable: <boolean> # Allows not to stack the item during the purchaseYou can specify the economy for an entire configuration file by specifying the economy at the root of your file.
Items Confirm
ZSHOP_ITEM_CONFIRM allows you to sell orders and need to confirm before purchase. To buy grades or permissions this can be very interesting
Add
ZSHOP_ADD is used in the inventory to choose the number of items to buy or sell. It increases the number of items desired. You can choose the number, or put a placeholder (as the default plugin does)
Remove
ZSHOP_REMOVE is used in the inventory to choose the number of items to buy or sell. It decreases the number of items desired. You can choose the number, or put a placeholder (as the default plugin does)
Buy More
ZSHOP_BUY_MORE is used in the inventory to buy additional stacks. You have to put in there the number of items the player will buy. In the default configuration it is directly a multiple of 64, but you can put anything else.
Confirm Buy
ZSHOP_CONFIRM_PURCHASE confirms a purchase.
Confirm Sell
ZSHOP_CONFIRM_SELL confirms a sale.
Show
ZSHOP_SHOW displays the item that the player will buy or sell, it will be displayed in the inventory to choose the number of items.
Show Confirm
ZSHOP_SHOW_CONFIRM will display the item that the player will purchase. Is used to confirm a purchase of a ZSHOP_ITEM_CONFIRM.
Last updated