public static void addMoney(String player, int money) { Stats stats = Main.getStatsForPlayer(player); Main.removeStat(stats); stats.addMoney(money); Main.addStat(stats); }
public static void setKillstreak(String player, int killstreak) { Stats stats = Main.getStatsForPlayer(player); Main.removeStat(stats); stats.setKillstreak(killstreak); Main.addStat(stats); }
public static int getKillstreak(String player) { return Main.getStatsForPlayer(player).getKillstreak(); }
public static void addRodUsed(String player) { Stats stats = Main.getStatsForPlayer(player); Main.removeStat(stats); stats.addRodUsed(); Main.addStat(stats); }
public static int getRodsUsed(String player) { return Main.getStatsForPlayer(player).getUsedRods(); }
public static int getWins(String player) { return Main.getStatsForPlayer(player).getWins(); }
public static void setStats(Stats stats) { Main.removeStat(Main.getStatsForPlayer(stats.getPlayerName())); Main.addStat(stats); }
public static Stats getStatsForPlayer(Player player) { return Main.getStatsForPlayer(player.getName()); }
public static Stats getStatsForPlayer(String player) { return Main.getStatsForPlayer(player); }
public static int getMoney(String player) { return Main.getStatsForPlayer(player).getMoney(); }