This update adds some API calls to Bazaar so you can hook into it and get some information as well as modify existing shops
API calls are as follows:
Code (Java):
/** * Gets a set of all shop locations * @return Set of shop locations */ Set
<Location
> getAllShopLocations
()
/** * Gets a set of all shop locations owned by the player specified * @param uuid Player unique identifier * @return Set of shop locations */ Set
<Location
> getPlayerShopLocations
(UUID uuid
)
/** * Gets a set of all admin shop locations * @return Set of admin shop locations */ Set
<Location
> getAdminShopLocations
()
/** * Gets a set of all server shop locations * @return Set of server shop locations */ Set
<Location
> getServerShopLocations
()
/** * Gets a set of all clan shop locations for the clan tag provided * @param tag Clan tag * @return Set of clan shop locations */ Set
<Location
> getClanShopLocations
(String tag
)
/** * Removes all the shop locations owned by the player specified * @param uuid Player unique identifier */ void removeAllPlayerShops
(UUID uuid
)
/** * Gets a shop at the specified location * @param location Location of shop * @return Shop object - null if not found */ Shop getShop
(Location location
)
/** * Replaces the shop at the specified location * @param location Location of shop * @param shop Shop object */ void putShop
(Location location, Shop shop
)