- 资源类型
- 转载
EconomyAPI
适用于Nukkit的经济核心
指令:
Commands/mymoney
/seemoney
/givemoney
/takemoney
/topmoney
/setmoney
权限:
economyapieconomyapi.command
economyapi.command.mymoney
economyapi.command.givemoney OP
economyapi.command.takemoney OP
economyapi.command.setmoney OP
economyapi.command.topmoney
面向于开发者:
API使用
Java:
EconomyAPI.getInstance().myMoney(player);
EconomyAPI.getInstance().reduceMoney(player, amount);
EconomyAPI.getInstance().addMoney(player, amount);
XML:
<repository>
<id>nukkitx-repo</id>
<url>[URL]https://repo.nukkitx.com/snapshot[/URL]</url>
</repository>
<dependency>
<groupId>me.onebone</groupId>
<artifactId>economyapi</artifactId>
<version>2.0.2</version>
<scope>provided</scope>
</dependency>