@Override
	public boolean onCommand(CommandSender sender, Command cmd, String label, String args[]){
		if (cmd.getName().equalsIgnoreCase("reports")){
			int start;
			int end;
			if (sender.hasPermission("stumcreport.viewreports")){
				try{
					if (args.length == 0){
						start = 0;
						end = 15;
					}else{
						int i = Integer.parseInt(args[0]);
						start = (i - 1) * 15;
						end = i * 15;
					}
					ResultSet result = plugin.sqlite.query("SELECT * FROM reports ORDER BY reports.time DESC LIMIT "+start+", 15;");
					sender.sendMessage(ChatColor.AQUA+"- - - -"+ChatColor.GOLD+" Reports "+ChatColor.AQUA+"- - - -");
					while (result.next()){
						start++;
						String reporter = result.getString("reporter");
						String reported = result.getString("reported");
						String reason = result.getString("reason");
						String server = result.getString("server");
						int reportTime = result.getInt("time");
						Date time = new Date((long)reportTime*1000);
						Player reporterPlr = plugin.getServer().getPlayer(reporter);
						Player reportedPlr = plugin.getServer().getPlayer(reported);
						for (Player player: plugin.getServer().getOnlinePlayers()){
							if (reporterPlr == player){
								reporter = reporterPlr.getDisplayName();
							}
							if (reportedPlr == player){
								reported = reportedPlr.getDisplayName();
							}
						}
						sender.sendMessage(ChatColor.AQUA+"["+start+"] "+"["+server+"] "+ChatColor.DARK_AQUA+reporter+ChatColor.GOLD+" reported "+ChatColor.DARK_AQUA+reported+ChatColor.RED+": "+reason);
						sender.sendMessage(ChatColor.AQUA+"Sent at "+time);
					}
					result.close();
				}catch (SQLException e){
					plugin.getLogger().severe(e.getMessage());
				}
			}
			return true;
		}
		return false;
	}