public void sendTo(CommandSender target, int pageNumber) throws InvalidMenuException, NoPageException, InvalidPageException{
		validate();
		Page page = getPage(pageNumber);
		page.validate();
		StringBuilder header = new StringBuilder();
		if(usePrefix){
			header.append(prefix);
			if(!prefix.endsWith(" ")){
				header.append(" ");
			}
		}
		header.append(style.getHeader(title, pageNumber, pages.size(), mainColor, titleColor, pageColor));
		StringBuilder footer = new StringBuilder();
		if(usePrefix){
			footer.append(prefix);
			if(!prefix.endsWith(" ")){
				footer.append(" ");
			}
		}
		footer.append(style.getFooter(title, pageNumber, pages.size(), mainColor, titleColor, pageColor));
		target.sendMessage(header.toString());
		page.sendTo(target);
		target.sendMessage(footer.toString());
	}