public void graphs(Metrics metrics) { // Custom Graphs. Sends data to mcstats.org
        try {

            //graph1
            Metrics.Graph graph1 = metrics.createGraph("auto-update"); //Sends auto-update data. if auto-update: is true it returns 'enabled'.
            String s = getConfig().getString("update");
            if (s.equalsIgnoreCase("Check") || s.equalsIgnoreCase("Auto")) {
                graph1.addPlotter(new SimplePlotter("enabled"));
            } else {
                graph1.addPlotter(new SimplePlotter("disabled"));
            }

            //graph2
            Metrics.Graph graph2 = metrics.createGraph("Language");
            if (getConfig().getString("Language").equalsIgnoreCase("EN") || getConfig().getString("Language").isEmpty()) {
                graph2.addPlotter(new SimplePlotter("English"));
            }
            else if (getConfig().getString("Language").equalsIgnoreCase("FR")) {
                graph2.addPlotter(new SimplePlotter("French"));
            }
            else if (getConfig().getString("Language").equalsIgnoreCase("FI")) {
                graph2.addPlotter(new SimplePlotter("Finnish"));
            }
            else if (getConfig().getString("Language").equalsIgnoreCase("DE")) {
                graph2.addPlotter(new SimplePlotter("German"));
            }
            else if (getConfig().getString("Language").equalsIgnoreCase("SV")) {
                graph2.addPlotter(new SimplePlotter("Swedish"));
            }
            else {
                graph2.addPlotter(new SimplePlotter("Other"));
            }
            metrics.start();
        } catch (Exception e) {
            getLogger().warning(e.getMessage());
        }
    }