Informations
You have all the information about the zAuctionHouse API

Maven

1
<repositories>
2
<repository>
3
<id>jitpack.io</id>
4
<url>https://jitpack.io</url>
5
</repository>
6
</repositories>
7
​
8
<dependencies>
9
<dependency>
10
<groupId>com.github.Maxlego08</groupId>
11
<artifactId>zAuctionHouseV3-API</artifactId>
12
<version>3.0.5.0</version>
13
</dependency>
14
</dependencies>
Copied!

Gradle

1
allprojects {
2
repositories {
3
maven { url 'https://jitpack.io' }
4
}
5
}
6
dependencies {
7
implementation 'com.github.Maxlego08:zAuctionHouseV3-API:3.0.5.0'
8
}
Copied!

First step

You will be able to retrieve the plugin's interfaces this way:
1
@Override
2
public void onEnable() {
3
AuctionManager auctionManager = getProvider(AuctionManager.class);
4
InventoryManager inventoryManager = getProvider(InventoryManager.class);
5
CategoryManager categoryManager = getProvider(CategoryManager.class);
6
TransactionManager transactionManager = getProvider(TransactionManager.class);
7
ConvertManager convertManager = getProvider(ConvertManager.class);
8
FilterManager filterManager = getProvider(FilterManager.class);
9
StoreManager storageManager = getProvider(StoreManager .class);
10
}
11
​
12
private <T> T getProvider(Class<T> classz) {
13
RegisteredServiceProvider<T> provider = getServer().getServicesManager().getRegistration(classz);
14
if (provider == null)
15
return null;
16
return provider.getProvider() != null ? (T) provider.getProvider() : null;
17
}
Copied!
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.
Last modified 2mo ago
Copy link