private static void loadOptions() {
        File inputFile = new File("haven.conf");
        if (!inputFile.exists()) {
            return;
        }
        try {
            options.load(new FileInputStream("haven.conf"));
        } catch (IOException e) {
            System.out.println(e);
        }
        String hideObjects = options.getProperty("hideObjects", "");
        String hideHighlight = options.getProperty("hcolor", "255,0,0,128");
//		System.out.println(hideHighlight);
        String clist[] = hideHighlight.split(",");
        if (clist.length != 4) {
            clist[0] = "255";
            clist[1] = "0";
            clist[2] = "0";
            clist[0] = "128";
        }
//		String salpha = hideHighlight.substring(8);
//		hideAlpha = Integer.parseInt(salpha, 16);
//		hideHighlight = hideHighlight.substring(0, 8);
//		hideColor = Color.decode(hideHighlight);
        hideColor = new Color(Integer.valueOf(clist[0]), Integer.valueOf(clist[1]),
                Integer.valueOf(clist[2]), Integer.valueOf(clist[3]));
        GoogleTranslator.apikey = options.getProperty("GoogleAPIKey",
                "AIzaSyCuo-ukzI_J5n-inniu2U7729ZfadP16_0");
        zoom = options.getProperty("zoom", "false").equals("true");
        noborders = options.getProperty("noborders", "false").equals("true");
        new_minimap = options.getProperty("new_minimap", "true").equals("true");
        new_chat = options.getProperty("new_chat", "true").equals("true");
        use_smileys = options.getProperty("use_smileys", "true").equals("true");
        isMusicOn = options.getProperty("music_on", "true").equals("true");
        isSoundOn = options.getProperty("sound_on", "true").equals("true");
        showDirection = options.getProperty("show_direction", "true").equals(
                "true");
        showNames = options.getProperty("showNames", "true").equals("true");
        showOtherNames = options.getProperty("showOtherNames", "false").equals(
                "true");
        showBeast = options.getProperty("showBeast", "false").equals("true");
        showRadius = options.getProperty("showRadius", "false").equals("true");
        showHidden = options.getProperty("showHidden", "false").equals("true");
        simple_plants = options.getProperty("simple_plants", "false").equals(
                "true");
        objectHighlighting = options.getProperty("objMouseHLight", "false")
                .equals("true"); // Kerri
        onlineNotifier = options.getProperty("onlineNotifier", "false").equals(
                "true"); // Kerri
        showDayTime = options.getProperty("showDayTime", "false")
                .equals("true"); // Kerri
        objectBlink = options.getProperty("objectBlink", "false")
                .equals("true"); // Kerri
        autoSaveMinimaps = options.getProperty("autoSaveMinimaps", "false").equals("true"); // Kerri
        sshot_compress = options.getProperty("sshot_compress", "false").equals(
                "true");
        sshot_noui = options.getProperty("sshot_noui", "false").equals("true");
        sshot_nonames = options.getProperty("sshot_nonames", "false").equals(
                "true");
        newclaim = options.getProperty("newclaim", "true").equals("true");
        showq = options.getProperty("showq", "true").equals("true");
        showpath = options.getProperty("showpath", "false").equals("true");
        // Kerri
        hideTressp = options.getProperty("hideTressp", "false").equals("true");
        hideTheft = options.getProperty("hideTheft", "false").equals("true");
        hideAsslt = options.getProperty("hideAsslt", "false").equals("true");
        hideBatt = options.getProperty("hideBatt", "false").equals("true");
        hideVand = options.getProperty("hideVand", "false").equals("true");
        hideMurd = options.getProperty("hideMurd", "false").equals("true");
        //
        show_minimap_profits = options.getProperty("show_minimap_profits",
                "false").equals("true");
        toggleCA = options.getProperty("toggleCA", "false").equals("true");
        toggleTR = options.getProperty("toggleTR", "false").equals("true");
        toggleCL = options.getProperty("toggleCL", "false").equals("true");
        show_gob_health = options.getProperty("show_gob_health", "false")
                .equals("true");
        show_minimap_players = options.getProperty("show_minimap_players",
                "false").equals("true");
        show_minimap_radius = options.getProperty("show_minimap_radius",
                "false").equals("true");
        sfxVol = Integer.parseInt(options.getProperty("sfx_vol", "100"));
        musicVol = Integer.parseInt(options.getProperty("music_vol", "100"));
        hideObjectList.clear();
        if (!hideObjects.isEmpty()) {
            for (String objectName : hideObjects.split(",")) {
                if (!objectName.isEmpty()) {
                    hideObjectList.add(objectName);
                }
            }
        }
        Resource.checkhide();
        timestamp = options.getProperty("timestamp", "false").equals("true");

        try {
            INIFile ifile = new INIFile("haven.ini");
            minimap_highlights = ifile.getSectionColors("HIGHLIGHT", "");
        } catch (IOException e) {
            e.printStackTrace();
        }
    }