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