Skip to content

Nukkit-coders/EconomyAPI

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

68 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

EconomyAPI

Core of economy system for Nukkit

Commands

  • /mymoney
  • /seemoney
  • /givemoney
  • /takemoney
  • /topmoney
  • /setmoney

Permissions

  • economyapi
    • economyapi.command
      • economyapi.command.mymoney
      • economyapi.command.givemoney OP
      • economyapi.command.takemoney OP
      • economyapi.command.setmoney OP
      • economyapi.command.topmoney

For developers

Developers can access to EconomyAPI's API by using:

EconomyAPI.getInstance().myMoney(player);
EconomyAPI.getInstance().reduceMoney(player, amount);
EconomyAPI.getInstance().addMoney(player, amount);

Maven repository

<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>