Informations
You have all the information about the zAuctionHouse API

Maven

<repositories>
<repository>
<id>jitpack.io</id>
<url>https://jitpack.io</url>
</repository>
</repositories>
​
<dependencies>
<dependency>
<groupId>com.github.Maxlego08</groupId>
<artifactId>zAuctionHouseV3-API</artifactId>
<version>3.0.8.2</version>
</dependency>
</dependencies>

Gradle

allprojects {
repositories {
maven { url 'https://jitpack.io' }
}
}
dependencies {
implementation 'com.github.Maxlego08:zAuctionHouseV3-API:3.0.8.2'
}

First step

You will be able to retrieve the plugin's interfaces this way:
@Override
public void onEnable() {
AuctionManager auctionManager = getProvider(AuctionManager.class);
InventoryManager inventoryManager = getProvider(InventoryManager.class);
CategoryManager categoryManager = getProvider(CategoryManager.class);
TransactionManager transactionManager = getProvider(TransactionManager.class);
ConvertManager convertManager = getProvider(ConvertManager.class);
FilterManager filterManager = getProvider(FilterManager.class);
StoreManager storageManager = getProvider(StoreManager .class);
IBlacklistManager blacklistManager = getProvider(IBlacklistManager.class);
}
​
private <T> T getProvider(Class<T> classz) {
RegisteredServiceProvider<T> provider = getServer().getServicesManager().getRegistration(classz);
if (provider == null)
return null;
return provider.getProvider() != null ? (T) provider.getProvider() : null;
}
Then you just have to look in the javadoc for the elements you need. Nevertheless, if you need help with the API don't hesitate to come to the discord to ask for help.
Copy link
On this page
Maven
Gradle
First step