public static long getJailTime(String playerName){
		long bantime = 0;
		if(isJailed(playerName)){
			try {
	    		SQL_STATEMENT = SQL_CONNECTION.createStatement();
	    		SQL_RESULTSET = SQL_STATEMENT.executeQuery("SELECT * FROM jails WHERE username='" + playerName + "'");
	    		
	    		// This loop checks all bans on record for the user to see if any tempbans are still active
	    		// Note tempbans are done in DAYS, the argument is a Double
	    		// For example 0.5 would be 0.5(1 day)=12hours
	    		// .1 -> 2.4 hours
	    		// 7 = 7 days, etc.
	    		while (SQL_RESULTSET.next()) {       	
	            	if(SQL_RESULTSET.getLong("expire") > System.currentTimeMillis()){
	            		bantime = SQL_RESULTSET.getLong("time");
	            	}
	            }
	    		
	    		SQL_RESULTSET.close();
	    		SQL_STATEMENT.close();
	    	} catch(SQLException e){
	    		e.printStackTrace();
	    	}
		}
		
		return bantime;
	}