The metrics class obtains data about a plugin and submits statistics about it to the metrics backend.
Public methods provided by this class:
Graph createGraph(String name); void addCustomData(BukkitMetrics.Plotter plotter); void start();
740741742743744745746747748749750
try { // Metrics if (this.pluginYaml.get("metrics", false)) { // Send anonymous statistics to mcstats.org try { this.metrics = new Metrics(this); } catch (IOException ex) { log(Level.SEVERE, "Failed to initialize metrics for " + getName()); CommonUtil.printFilteredStackTrace(ex); } }