Sueta

Villager Shop GUI

1.10

Shops made easy!

·Plugin

TRY PREMIUM ULTIMATESHOPS https://www.spigotmc.org/resources/ultimateshops.78964/
Permissions

Admin permission node - villagershop.admin
Commands
/Shop create <id> - Will create a shop with an id. (Id is not the same over the villager
/shop remove <id> Will remove any shop with the id
/shop edit - Will open a GUI where you can config everything about a villager shop, including name, items, item prices, GUI Size, and even your NPC Location!
/shop save - Will save your configuration files
/shop reload - Will load in your configuration files if you manually set prices for example

How to use?
Well to use it as a regular player you can right click the villager and a GUI will open. Left-Click the selected item to buy 1x and Left-Click while holding down Shift will buy 64x of the selected item.
On the other hand to sell an item you must right click a selected item to sell 1x in your inventory, But to sell all in your inventory go to the selected item and Right-Click while holding down shift, doing so will sell all of the selected items in your inventory

How to edit
To edit a villager shop you must first create one with /shop create <id>... Once you create a villager you can either do /clans edit <id> or hold shift and Right-Click a villager to open the Edit GUI.
Once you're in the GUI, you can can move a selected NPC to your location with the map or you can change the menu size by clicking the book and putting in 54 for 6 lines and -9 for every line less for example 45 for 5 lines and 36 for 4 lines...
To edit the name, click the nametag and input a name through the anvil GUI. It does in fact use color codes such as &a&lTest
To edit items click the chest, to add items click the gold ingot it will open a gui for you to put in an items... Once inside go back to the edit items and left click a selected item to change the prices... You can add or minus the amount to buy and sell but if you need to put in a custom number left click the emerald to put in the buy price manually and the emerald to put in the sell price manually.
To delete a villager you must left click the barrier icon in the edit villager
GUI

Support
Donations are super well appreciated

Similar projects

Plugin →