Ejemplo n.º 1
0
  public void savePlayers() {

    if (players.size() > 0) {

      for (StatistikPlayer player : players) {
        calculatePoints(player);
        player.save();
      }
    }
  }
Ejemplo n.º 2
0
  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;
      }
    }
  }