Skip to content

Example implementation of custom item provider for ShopGUI+ using its public API

License

Notifications You must be signed in to change notification settings

brcdev-minecraft/shopgui-api-example-item-provider

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MyItems - Example plugin using ShopGUI+'s API

This repository contains an example Spigot plugin, MyItems, created with use of ShopGUI+'s API. It shows how to correctly implement an item provider which will be registered in ShopGUI+ and used for selling & buying custom items.

Building

./mvnw clean package

Using

After you build the artifact using Maven command above, you can drop in the plugin to the plugins directory of your server along with regular ShopGUI+ plugin and see how it works.

You can expect this kind of messages during server startup:

[00:06:34] [Server thread/INFO]: [MyItems] Enabling MyItems v1.1.0
[00:06:34] [Server thread/INFO]: [MyItems] ShopGUI+ detected.
...
[00:06:34] [Server thread/INFO]: [ShopGUIPlus] Enabling ShopGUIPlus v1.73.1
...
[00:06:35] [Server thread/INFO]: Done (13.079s)! For help, type "help"
...
[00:06:38] [Server thread/INFO]: [ShopGUIPlus] Registered item provider 'MyItems'.
[00:06:38] [Server thread/INFO]: [MyItems] Registered item provider in ShopGUI+!
...
[00:06:38] [Server thread/INFO]: [ShopGUIPlus] Enabled item provider for MyItems.

It means that the MyItems plugin successfully registered its item provider in ShopGUI+ and can be used in shops.

About

Example implementation of custom item provider for ShopGUI+ using its public API

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages