public void loadBans() throws SQLException {
		sql.initialise();
		sql.standardQuery("DELETE FROM BungeeBans WHERE (NOW()- TempBanEndDate)>=0");
		ResultSet res = sql.sqlQuery("SELECT * FROM BungeeBans");
		while(res.next()){
			Timestamp date = res.getTimestamp("TempBanEndDate");
			Calendar cal = null;
			if(date!=null){
			cal =Calendar.getInstance(); 
					 cal.setTime(date);
			}
			plugin.playerBans.put(res.getString("PlayerName"),cal);
		}
		ResultSet ips = sql.sqlQuery("SELECT * FROM BungeeBannedIPs");
		while(ips.next()){
			String IP= ips.getString("IPAddress");
			plugin.IPbans.add(IP);
		}
		sql.closeConnection();
		
	}