ℹī¸Informations

You have all the information about the zAuctionHouse API

JavaDoc: https://javadocs.groupez.dev/zauctionhousev3

JitPack: https://jitpack.io/#Maxlego08/zAuctionHouseV3-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.2.1.9</version>
		<scope>provide</scope>
	</dependency>
</dependencies>

Gradle

dependencyResolutionManagement {
	repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
	repositories {
		mavenCentral()
		maven { url 'https://jitpack.io' }
	}
}
dependencies {
        implementation 'com.github.Maxlego08:3.2.1.9'
}

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.

Last updated