📖
zAuctionHouse
DiscordGroupeZServeur Minecraft Vote
  • â„šī¸Informations
    • 🍾Getting started
    • 🔌Installing zAuctionHouse
    • ❓Why i need zMenu ?
  • Configurations
    • 🏤Official Configurations
    • Multi servers
    • 🚉Statistics
    • 📔Commands and Permissions
    • đŸĒ§PlaceHolders
    • âšī¸Buttons
    • 💲Economy
    • 🎊Convert
    • 🔍Search / Filter
    • Messages
    • 💱Prices
    • 👨‍đŸ’ŧWhitelist
    • 🛑Blacklist
    • 🚖Tax
    • Categories
    • 🇨đŸ‡ĩItem Translation
  • đŸ—ƒī¸Plugins files
    • Config.yml
    • 💲Economies.yml
    • Inventories
    • Patterns
    • Blacklist.yml
    • Prices.yml
    • Taxs.yml
    • Whitelist.yml
  • Development Portal
    • â„šī¸Informations
    • 🌆Events
    • đŸŦCustom storage
    • Filter
    • 🛑Blacklist
    • 💸Custom economy
  • 👴Old Configurations
    • Items
    • Buttons
    • Placeholder buttons
Powered by GitBook
On this page
  • Maven
  • Gradle
  • First step

Was this helpful?

  1. Development Portal

Informations

You have all the information about the zAuctionHouse API

PreviousWhitelist.ymlNextEvents

Last updated 6 months ago

Was this helpful?

JavaDoc:

JitPack:

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.

â„šī¸
https://javadocs.groupez.dev/zauctionhousev3
https://jitpack.io/#Maxlego08/zAuctionHouseV3-API/