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