Example #1
0
 public static void addMoney(String player, int money) {
   Stats stats = Main.getStatsForPlayer(player);
   Main.removeStat(stats);
   stats.addMoney(money);
   Main.addStat(stats);
 }
Example #2
0
 public static void addRodUsed(String player) {
   Stats stats = Main.getStatsForPlayer(player);
   Main.removeStat(stats);
   stats.addRodUsed();
   Main.addStat(stats);
 }
Example #3
0
 public static void setKillstreak(String player, int killstreak) {
   Stats stats = Main.getStatsForPlayer(player);
   Main.removeStat(stats);
   stats.setKillstreak(killstreak);
   Main.addStat(stats);
 }
Example #4
0
 public static void setStats(Stats stats) {
   Main.removeStat(Main.getStatsForPlayer(stats.getPlayerName()));
   Main.addStat(stats);
 }