public void savePlayers() { if (players.size() > 0) { for (StatistikPlayer player : players) { calculatePoints(player); player.save(); } } }
public void removePlayer(Player player) { for (StatistikPlayer player2 : players) { if (player2.getName().equalsIgnoreCase(player.getName())) { // Spieler Stats speichern und entfernen player2.save(); players.remove(player2); return; } } }