Minimum money is 0
This commit is contained in:
@@ -14,7 +14,9 @@ public class Money {
|
||||
return;
|
||||
}
|
||||
}
|
||||
playerMoney.put(P, playerMoney.get(P) + count);
|
||||
int money = playerMoney.get(P) + count;
|
||||
if (money < 0) money = 0;
|
||||
playerMoney.put(P, money);
|
||||
}
|
||||
|
||||
public static void saveMoney(OfflinePlayer P) {
|
||||
|
||||
Reference in New Issue
Block a user