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