-
Notifications
You must be signed in to change notification settings - Fork 1
Using the API
To use the API, simply put the following code snippet into your pom.xml (for maven) or build.Gradle (for Gradle) and replace VERSION with the version of the API that you want. Example: for version 1.1.0-alpha1, replace it with v1.1.0-alpha1.
GO TO https://jitpack.io/private#CarThax08/SimpleCurrencies and select the correct build tool that you are using!
To add currency do: Currencies.addCurrency(CURRENCY_NAME, PLAYER_TO_EDIT, AMOUNT_TO_ADD);
To remove currency do: Currencies.removeCurrency(CURRENCY_NAME, PLAYER_TO_EDIT, AMOUNT_TO_REMOVE;)
To set the currency value do: Currencies.setCurrency(CURRENCY_NAME, PLAYER_TO_EDIT, AMOUNT_TO_SET);
To clear the currency do Currencies.clearCurrency(CURRENCY_NAME, PLAYER_TO_EDIT);
To get the currency value do Currencies.getCurrency(CURRENCY_NAME, PLAYER_TO_GET_FROM);