Step 7: Shops
Setting up BetterShops
The first step will be to get the BetterShops jar file from The Mods link, place it into your plugins folder and then start and stop your server, as we need to make some configuration changes before we begin to use BetterShops.
Now that the server is stopped after loading BetterShops once, go to the BetterShops plugin folder and open config.yml in a text editor like Notepad. I recommend you use Notepad++ as its much better for yml files. We are going to go to the bottom of the config.yml file and change the SQL settings to match our SQL server, and set the SQL value to True.
The other thing I change for my server are:
Changed "Limit: 0" , so that students can't make their own shops until I want them too.
Changed "CostForShops: False" so that it won't cost any money to make a shop, can be changed later if desired.
Changed "Trades: False" as its complexity we don't need when students begin to make their own shops.
Changed "EnableNPC: False" as NPC's are generally buggy and you'll just have a lot of headaches trying to use them.
Now that the server is stopped after loading BetterShops once, go to the BetterShops plugin folder and open config.yml in a text editor like Notepad. I recommend you use Notepad++ as its much better for yml files. We are going to go to the bottom of the config.yml file and change the SQL settings to match our SQL server, and set the SQL value to True.
The other thing I change for my server are:
Changed "Limit: 0" , so that students can't make their own shops until I want them too.
Changed "CostForShops: False" so that it won't cost any money to make a shop, can be changed later if desired.
Changed "Trades: False" as its complexity we don't need when students begin to make their own shops.
Changed "EnableNPC: False" as NPC's are generally buggy and you'll just have a lot of headaches trying to use them.
How my config file looks.
Creating your first shop
Now restart your server and join back in. Put down a chest and then hold Shift and right click on the chest while holding a sign to place a sign on the chest. Then on the sign type "[shop]" and you'll be prompted to put in a name for the shop. Now when you right click on the sign, you'll get the shop interface. Spend sometime watching the tutorial video for BetterShops, that will tell you pretty much everything you need to know to manage them as its a completely GUI interface and you won't need any commands to work with them.
Allowing Player Made Shops
The permissions set by default in the plugin allow players to make shops for buying and selling and generally won't need to be changed, as the only permissions they don't have are things only Op players should have (infinite inventory, breaking other's shops, etc). If you want to allow them to make shops just change the config.yml file and set the "Limit: 0" line to a number above zero. This is a good way to have the students villages become more unique and a reason for students to visit each others towns. Just be aware that kids can set the cost of the items and so remind students to check the price before buying so they don't spend all their money by accident on over priced goods.