Developer API
Add the following to your repositories section:
Add the dependency to your dependencies section:
Add the following to your repositories section:
Add the following to your dependencies section:
Replace CHANGE-THIS to the latest version:
API Usage
Don't forget to add AxAuctions to your plugin's plugin.yml, like this:
or:
Adding your own currency:
Create a new class and make it implement com.artillexstudios.axauctions.hooks.currency.CurrencyHook
, it should look something like this:
Next is, you will have to create a section in the currencies.yml
, just copy paste one of the other currency's, for example like this:
Create your implementation for all these methods, after that is done, you will have to register it by using the com.artillexstudios.axauctions.hooks.HookManager.registerCurrencyHook()
method, for the plugin parameter give the instance of your plugin's main class.
And if all of this is done, congratulations, you have added a new currency to AxAuctions!