Sueta

CurrencyAPI [Discontinued]

1.3

Provides a database to store, modify and call a players balance

·Plugin

An easy way to access your players balance. Simple import this API into your projects where balance has a role and your're ready to go!

This plugin works with all versions of Spigot above 1.8 even the newest 1.13!

To use the API simply follow the instructions on the github page here *Click Me*

or simply Copy&Paste this little Code in your onEnable method

Depending on what runtime your using this API for BungeeCord or Spigot!

CurrencyAPI currencyAPI = SpigotCurrency.getInstance().getCurrencyAPI();

CurrencyAPI currencyAPI = BungeeCurrency.getInstance().getCurrencyAPI();

Maven Repository:

<repositories>
        <repository>
            <id>currencyapi-repo</id>
            <url>http://repo.zm4xi.de</url>
        </repository>
    </repositories>
<dependencies>
        <dependency>
            <groupId>de.zm4xi.currencyapi</groupId>
            <artifactId>CurrencyAPI</artifactId>
            <version>1.3</version>
            <scope>provided</scope>
        </dependency>
    </dependencies>

There are 2 commands one to display the balance or another players balance, the other one to change the balance deposit/withdraw.

/balance - Shows your own balance
/balance <player> - Shows a players balance

/currency withdraw <player> <amount> - To withdraw from a players balance
/currency deposit <player> <amount> - To deposit to an players balance

If you want to know why this way read here!

currencyapi.*:
      currencyapi.help
      currencyapi.balance:
            currencyapi.balance.others
      currencyapi.withdraw
      currencyapi.deposit

Free for personal and commercial use
You may not resell, re-distribute, or abuse the creator's copyrights
This means:
♦ Do not this claim as yours
♦ Do no redistrubute as a COMMERCIAL USE item
♦ Have available for download on your or other sites

PLEASE ALSO NOTE A FEW CLASSES HAVE A MIT LICENSE ATTACHED!

Thanks for using my CurrencyAPI there will be updates from time to time to make sure it still works as intended!

Similar projects

Plugin →