Copy <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>
Copy dependencyResolutionManagement {
repositoriesMode . set ( RepositoriesMode . FAIL_ON_PROJECT_REPOS )
repositories {
mavenCentral()
maven { url 'https://jitpack.io' }
}
}
dependencies {
implementation 'com.github.Maxlego08:3.2.1.9'
}
Copy @ 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.