public void setFrequency (CommandSender sender, String inputString) throws IOException{
		   if (new File("plugins/CakesMinerApocalypse/").mkdirs())
				System.out.println("Frequencies file created");
		   File myFile = new File("plugins/CakesMinerApocalypse/frequencies.txt");
		   if (myFile.exists()){
			   Scanner inputFileCheck = new Scanner(myFile);
	           int j = 0;
	           while (inputFileCheck.hasNext()) {
            	inputFileCheck.nextLine();
            	j++;
	           }
	           int size = (j + 1) / 2;
	           String[] nameArray = new String[size];
	           String[] circleArray = new String[size];
	           inputFileCheck.close();
	           Scanner inputFile = new Scanner(myFile);
	           for (int i = 0; i < size; i++) {
	               nameArray[i] = inputFile.nextLine();
	               circleArray[i] = inputFile.nextLine();
	           }
	           boolean isInFile = false;
	           for (int i = 0; i < size; i++) {
	               if (nameArray[i].equalsIgnoreCase(sender.getName())){
	               		circleArray[i] = inputString;
	               		sender.sendMessage("Frequency " + inputString + " set successfully!");
	               		isInFile = true;
	               }
	           }
	           inputFile.close();
	           PrintWriter outputFile = new PrintWriter("plugins/CakesMinerApocalypse/frequencies.txt");
	           for (int i = 0; i < size; i++) {
	               outputFile.println(nameArray[i]);
	               outputFile.println(circleArray[i]);
	           }
	           if (!isInFile){
	        	   outputFile.println(sender.getName());
	               outputFile.println(inputString);
	           }
	           outputFile.close();
		}
		else{
			PrintWriter outputFile = new PrintWriter("plugins/CakesMinerApocalypse/frequencies.txt");
	        outputFile.println(sender.getName());
	        outputFile.println(inputString);
	        sender.sendMessage("frequency " + inputString + " set successfully!");
	        outputFile.close();
		}
    }