Пример #1
0
 public static void addMoney(String player, int money) {
   Stats stats = Main.getStatsForPlayer(player);
   Main.removeStat(stats);
   stats.addMoney(money);
   Main.addStat(stats);
 }
Пример #2
0
 public static void setKillstreak(String player, int killstreak) {
   Stats stats = Main.getStatsForPlayer(player);
   Main.removeStat(stats);
   stats.setKillstreak(killstreak);
   Main.addStat(stats);
 }
Пример #3
0
 public static int getKillstreak(String player) {
   return Main.getStatsForPlayer(player).getKillstreak();
 }
Пример #4
0
 public static void addRodUsed(String player) {
   Stats stats = Main.getStatsForPlayer(player);
   Main.removeStat(stats);
   stats.addRodUsed();
   Main.addStat(stats);
 }
Пример #5
0
 public static int getRodsUsed(String player) {
   return Main.getStatsForPlayer(player).getUsedRods();
 }
Пример #6
0
 public static int getWins(String player) {
   return Main.getStatsForPlayer(player).getWins();
 }
Пример #7
0
 public static void setStats(Stats stats) {
   Main.removeStat(Main.getStatsForPlayer(stats.getPlayerName()));
   Main.addStat(stats);
 }
Пример #8
0
 public static Stats getStatsForPlayer(Player player) {
   return Main.getStatsForPlayer(player.getName());
 }
Пример #9
0
 public static Stats getStatsForPlayer(String player) {
   return Main.getStatsForPlayer(player);
 }
Пример #10
0
 public static int getMoney(String player) {
   return Main.getStatsForPlayer(player).getMoney();
 }