package nautilus.game.arcade.stats; import org.bukkit.entity.Player; import org.bukkit.event.Listener; import nautilus.game.arcade.game.Game; public class StatTracker implements Listener { private final G game; public StatTracker(G game) { this.game = game; } public G getGame() { return game; } public boolean canAddStats() { return getGame().GetPlayers(false).size() * 4 >= 3 * getGame().Manager.GetPlayerFull(); } public void addStat(Player player, String stat, int value, boolean limitTo1, boolean global) { if (canAddStats()) addStat(player, stat, value, limitTo1, global); } }