[MD]# CoinsAPI-NK
CoinsAPI for Nukkit
# 指令
指令 | 描述 | 使用权限
--- | --- | ---
`/setcoin` | 设置玩家硬币数量 | op
`/addcoin` | 添加硬币给玩家 | op
`/reducecoin` | 扣除玩家硬币 | op
`/seecoin` | 查看玩家硬币数量 | all
`/mycoin` | 查看我的硬币数量 | all
# 仓库
```xml
<repositories>
<repository>
<id>jitpack.io</id>
<url>https://jitpack.io</url>
</repository>
</repositories>
```
# 依赖
```xml
<dependency>
<groupId>com.github.angga7togk</groupId>
<artifactId>CoinsAPI-NK</artifactId>
<version>1.0.0</version>
</dependency>
```
# 面向开发者
```java
// get coins people or yourself
Coins.getInstance().getPlayerCoins(player);
Coins.getInstance().getPlayerCoinsByName("Angga7Togk");
// Set Coins Player
Coins.getInstance().getCoinsManager().setCoins(player, 100);
Coins.getInstance().getCoinsManager().setCoinsByName("Angga7Togk", 100);
// Add Coins Player
Coins.getInstance().getCoinsManager().addCoins(player, 125);
Coins.getInstance().getCoinsManager().addCoinsByName("Angga7Togk", 125);
// Reduce Coins Player
Coins.getInstance().getCoinsManager().reduceCoins(player, 25);
Coins.getInstance().getCoinsManager().reduceCoinsByName("Angga7Togk", 25);
```[/MD]
CoinsAPI for Nukkit
# 指令
指令 | 描述 | 使用权限
--- | --- | ---
`/setcoin` | 设置玩家硬币数量 | op
`/addcoin` | 添加硬币给玩家 | op
`/reducecoin` | 扣除玩家硬币 | op
`/seecoin` | 查看玩家硬币数量 | all
`/mycoin` | 查看我的硬币数量 | all
# 仓库
```xml
<repositories>
<repository>
<id>jitpack.io</id>
<url>https://jitpack.io</url>
</repository>
</repositories>
```
# 依赖
```xml
<dependency>
<groupId>com.github.angga7togk</groupId>
<artifactId>CoinsAPI-NK</artifactId>
<version>1.0.0</version>
</dependency>
```
# 面向开发者
```java
// get coins people or yourself
Coins.getInstance().getPlayerCoins(player);
Coins.getInstance().getPlayerCoinsByName("Angga7Togk");
// Set Coins Player
Coins.getInstance().getCoinsManager().setCoins(player, 100);
Coins.getInstance().getCoinsManager().setCoinsByName("Angga7Togk", 100);
// Add Coins Player
Coins.getInstance().getCoinsManager().addCoins(player, 125);
Coins.getInstance().getCoinsManager().addCoinsByName("Angga7Togk", 125);
// Reduce Coins Player
Coins.getInstance().getCoinsManager().reduceCoins(player, 25);
Coins.getInstance().getCoinsManager().reduceCoinsByName("Angga7Togk", 25);
```[/MD]