public void save(){
        try {
            File file = new File(getDataFolder() + "/names.txt");
            boolean createFile = file.createNewFile();
            if(createFile){
                getLogger().info("Creating a file called names.txt");
            }
            PrintWriter write = new PrintWriter(file, "UTF-8");

            for (String name : names) {
                write.println(name);
            }
            write.close();
        }
        catch (IOException e) {
            e.printStackTrace();
        }
    }