Basic Shop Plugin
SpigotMCModrinthUI based economy plugin which allows custom menus, prices, quantities, etc.
Hello everyone, this is a rather simple UI-based economy shop plugin I've created in my spare time for a friend. Although he no longer uses it so I'm posting it here for additional input and in the case anyone else finds it useful. Now, the usage is rather simple. The player needs to type in /shop which will open up the UI shop. The shop itself has several menus starting out, and each menu can hold 9x6 slots. The limit on menus itself is also 9x6. The config can be used to create additional menus, delete current menus, and in each menu create the items, prices for them, and quantities.
Menu List:
![[IMG]](http://proxy.spigotmc.org/b482d1f84132bac5181276c340de7a3722c3f557?url=http%3A%2F%2Fi.imgur.com%2FdOvW49X.png)
Inside the Blocks menu:
![[IMG]](http://proxy.spigotmc.org/d47b9c67aa034c46c8f78b1b5e3231272723e8e0?url=http%3A%2F%2Fi.imgur.com%2FVht1UXo.png)
The menu can hold 9x6 items, each item in the config has a required ID and METADATA input. For example, if you wanted to sell Stone, you would set it to be 1 ID 0 METADATA, but if you wanted to sell Granite you would set it to be 1 ID 1 METADATA.
![[IMG]](http://proxy.spigotmc.org/209d0b2d67651d43c560585ba24a82ecf91d0c73?url=http%3A%2F%2Fi.imgur.com%2FP8TsZyU.png)
Now, what the "16,32" means is, you can buy 16 of them for the price of 32 total.
These items are in the Blocks menu, and with how I defined the pre-existing config, everything in the Blocks menu can only be BOUGHT and not SOLD. Of course, if you wish to change it it would be easy, I could make it so everything can only be sold, not bought.
![[IMG]](http://proxy.spigotmc.org/16cf6792db8630781584c878bcc2a8c80e375a5c?url=http%3A%2F%2Fi.imgur.com%2FA1Mk2OO.png)
What the "16,32" means here is you can sell 16 of them and gain 32 currency.
I could also make it so you can both sell AND buy it.
![[IMG]](http://proxy.spigotmc.org/bde335641e7402af7ee997ddd379d94f350c7a28?url=http%3A%2F%2Fi.imgur.com%2F3y5hS62.png)
Within the menu, left-clicking on items can purchase them while right-clicking on items can sell them.
Another Menu example, this time with both Buy and Sell:
![[IMG]](http://proxy.spigotmc.org/178b1ef686d63426c33965faa76c36242a8c15f5?url=http%3A%2F%2Fi.imgur.com%2FUvTUqjG.png)
I actually define all of this within the config file itself, so if anything I say is unclear then go look there to study it.
If there is anything unclear, then post it in the comments or message me, I check the forums once every couple of days most the time, I'll get to it as soon as I can. Additionally, if there are any bugs in the program, write it in the comments or message me and I'll fix it as soon as possible. Any additional feature ideas would be good too. Thanks for reading.
Comments 0
No comments yet. Be the first to share your thoughts.