Since i don't have a public repositoty yet, you can go ahead and download the free version jar and add the jarfile to your classpath.
Get DailyShop Instance
@Override
public void onEnable() {
DailyShop api = DailyShop.getInstance();
shopsManager manager = api.getShopsManager();
}
Events
/**
* Event called when a new shop
* is created. Cannot be cancelled
**/
public void foo(CreatedShopEvent e) {
dShop shop = e.getShop;
Timestamp time = e.getTimestamp();
}
/**
* Event called when a shop
* is deleted. Cannot be cancelled
**/
public void foo(deletedShopEvent e) {
dShop shop = e.getShop;
Timestamp time = e.getTimestamp();
}
/**
* Event called when shop item's
* are updated.
**/
public void foo(reStockShopEvent e) {
dShop shop = e.getShop;
Timestamp time = e.getTimestamp();
}
/**
* Event called when an item
* of a certain shop is updated
**/
public void foo(deletedShopEvent e) {
dShop shop = e.getShop;
Timestamp time = e.getTimestamp();
dItem item = e.getItem(); // The item updated
updateType type = e.getType(); // UPDATE_ITEM, NEXT_AMOUNT, DELETE_ITEM
}