public void minusGold(String player, int amount) { if (gold.containsKey(player)) gold.put(player, gold.get(player) - amount); COBAPI.updateStats(player); }
public void setGold(String player, int gold) { this.gold.put(player, gold); COBAPI.updateStats(player); }