There was an error while loading. Please reload this page.
1 parent 655c7e0 commit ff2cf18Copy full SHA for ff2cf18
1 file changed
src/main/java/com/github/elic0de/battleroyale/user/GameUser.java
@@ -17,6 +17,8 @@ public class GameUser extends OnlineUser {
17
18
private final Player player;
19
20
+ private BigDecimal coins;
21
+
22
public GameUser(Player player) {
23
super(player.getUniqueId(), player.getName());
24
this.player = player;
@@ -41,11 +43,11 @@ public void clearEffectAndHeal() {
41
43
42
44
public void increaseKills() {
45
// ここにキル数を増加させる処理を
- giveCoins(2);
46
+ giveCoins(BigDecimal.valueOf(2));
47
}
48
- public void giveCoins(int coins) {
-
49
+ public void giveCoins(BigDecimal coins) {
50
+ coins.add(coins);
51
52
53
public void giveRewards(BigDecimal reward) {
0 commit comments