- Compatible API Versions
- 1.0.13+
- Sourcecode
- https://github.com/Nukkit-coders/EconomyAPI
Maintained by Nukkit community. Original author: onebone
EconomyAPI
Core of economy system for Nukkit
Commands
- /mymoney (money, bal, seemoney, balance)
- /givemoney (deposit)
- /takemoney (withdraw)
- /setmoney (setbal, setbalance)
- /topmoney (baltop, balancetop)
- /pay
Permissions
- economyapi
For developers
Developers can access to EconomyAPI's API by using:
Maven repository
EconomyAPI
Core of economy system for Nukkit
Commands
- /mymoney (money, bal, seemoney, balance)
- /givemoney (deposit)
- /takemoney (withdraw)
- /setmoney (setbal, setbalance)
- /topmoney (baltop, balancetop)
- /pay
Permissions
- economyapi
- economyapi.command
- economyapi.command.mymoney
- economyapi.command.seemoney
- economyapi.command.givemoney (OP)
- economyapi.command.takemoney (OP)
- economyapi.command.setmoney (OP)
- economyapi.command.topmoney
- economyapi.command.pay
For developers
Developers can access to EconomyAPI's API by using:
Java:
EconomyAPI.getInstance().myMoney(player);
EconomyAPI.getInstance().reduceMoney(player, amount);
EconomyAPI.getInstance().addMoney(player, amount);
EconomyAPI.getInstance().setMoney(player, amount);
//-3 = EconomyAPI.RET_NO_ACCOUNT
//-2 = EconomyAPI.RET_CANCELLED
//-1 = EconomyAPI.RET_NOT_FOUND
//0 = EconomyAPI.RET_INVALID
//1 = EconomyAPI.RET_SUCCESS
XML:
<repository>
<id>nukkitx-repo</id>
<url>https://repo.nukkitx.com/snapshot</url>
</repository>
<dependency>
<groupId>me.onebone</groupId>
<artifactId>economyapi</artifactId>
<version>2.0.2</version>
<scope>provided</scope>
</dependency>