EconomyAPI

EconomyAPI 2.0.2

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
- 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
Maven repository
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>
Author
PetteriM1
Downloads
26,088
Views
30,993
First release
Last update
Rating
4.83 star(s) 6 ratings

More resources from PetteriM1

Latest updates

  1. Compatibility fixes

    Fixed compatibility with the latest Nukkit. No API changes.
  2. Fix critical bug

    Players could pay infinite money which was caused by a fix in the previous version. PLEASE UPDATE
  3. Balance Command Fix

    Balance would create new player data for non-existent players if their name was typed incorrectly.

Latest reviews

There will be many unexpected problems when using UUID, leading to the loss of players' gold coins.
Can you add support for names?
Hello SupremMortal...
What's whit Nukkit 2.0?
I hope so.
Work perfectly !
Does it support mysql?
Excellent plugin. I love it :)
Works prefect.
Top