Create new shop - AlonsoAliaga/AlonsoPvP GitHub Wiki
How to create a new shop?
To create a new shop you MUST to follow these steps.
Before creating the shop
You need to decide the identifier, the name, inventory size and slot.
In this example the identifier will be supporter-shop
Name will be Supporter shop, replacing spaces with underscores we have Supporter_shop
The slot we use in the main shop GUI will be slot 4
The shop icon will be a diamond
The amount of rows our shop will have is 3 rows (27 slots/ from 0 - 26)
Use this image as a guide:

⚠️ Note: Don't use color nodes, it's not supported.
Creating the empty shop
While holding the diamond in our hand we run the next command:
/alonsopvp shops create supporter-shop Supporter_shop 4 3
Adding items to the shop
To add items to the shop we need to decide the item, the slot, the price and the identifier.
In this example we will add an enchanted chestplate. We create the item using vanilla commands or any other method.
The identifier will be chestplate-sup
The item will be in slot 0 and the price will be 200.
We hold the item in the main hand and run the next command.
/alonsopvp shops add supporter-shop chestplate-sup 0 200
You can keep adding more items specifying identifier, slot and price.
If you want to add a free item, use 0 in price.
Customizing the shop
You can go to shop.yml file and edit lore, permissions and more.
Once you are done, save file.
Enabling the shop
Once the file has been save, run the next command:
/alonsopvp shops reload
🎉 Congratulations! Shop is now enabled and should be available with
/apvp shop🪅