public static List < Player > loadPlayers ( List < String > playersFiles ) throws PlayerException { log . info ( "[loadPlayers] Loading all players" ) ; List < Player > players = new ArrayList <> ( ) ; if ( playersFiles . size ( ) < 1 ) { log . warn ( "[loadPlayers] No players to load" ) ; } for ( String singlePath : playersFiles ) { Player single = new Player ( new File ( singlePath ) ) ; players . add ( single ) ; } return players ; }
Creates a list of players using the paths provided