public void loadFile(){
        try
        {
            File file = new File(getDataFolder() + "/names.txt");
            boolean newFile = file.createNewFile();
            if (newFile)
            {
                getLogger().info("Created a file called names.txt");
            }

            BufferedReader read = new BufferedReader(new FileReader(file));
            String line;
            while ((line = read.readLine()) != null) {
                if  (!names.contains(line)){
                    names.add(line);
                }
            }
        }
        catch (IOException e) {
            e.printStackTrace();
        }
    }