public boolean onCommand(CommandSender sender, Command cmd, String label, String[] args) {
		
		if(sender instanceof Player) {
			player = (Player) sender;
		}
		
		if(cmd.getName().equalsIgnoreCase("qlist")) {
			//The part to check if the sender is a player or not is just where the message is. Just prints to log instead if it is the console.
			
			//Except for 1 check here! :P
			if(player!=null) {
				Query.debugMsg(player.getName() + " used the /qlist command.");
			}
			
			File[] list = getFiles();
			
			//debugging
			Query.debugMsg("Files in " + plugin.getDataFolder() + "/Queries: " + list.toString());
			
			/*
			 * Now that we have an array of the files in the Queries folder, we
			 * can iterate through them.
			 *
			 * We need to know the file's name without an extension so
			 * the query names can be displayed properly.
			 * 
			 */
			
			String queries ="";
			String noExt = "";
			
			if(list.length != 0) {
				for(File f : list) {
					if(isYaml(f)) {
						noExt = getFilesNoExt().get(f);
						
						//These statements make a nice pretty string of all the queries.
				    	if(!queries.equals("")) {
				    		queries = queries + ", " + noExt;
				    		
				    	} else {
				    		queries = queries + noExt;
				    		
				    		//debugging
					    	Query.debugMsg("queries variable = " + queries);
				    	}
					}
				}
			}
			
			if(player==null) {
				//Print it out bro! (This is to the console
				Query.promptMsg("Queries: " + queries);
			} else {
				if(checkPerm("qlist")) {
					//Print it out bro!
					player.sendMessage(ChatColor.DARK_PURPLE + "Queries: " + queries);
				}
			}
			return true;
		}
	    return false;
	}