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();
343344345346347348349350351352353354
if (Residence.getPermissionManager().isResidenceAdmin(player)) { turnResAdminOn(player); } } try { Metrics metrics = new Metrics(this); metrics.start(); } catch (IOException e) { // Failed to submit the stats :-( } Logger.getLogger("Minecraft").log(Level.INFO, "[Residence] Enabled! Version " + this.getDescription().getVersion() + " by bekvon"); initsuccess = true;