Package dev.cwhead.GravesX.manager
Class MetricsManager
java.lang.Object
dev.cwhead.GravesX.manager.MetricsManager
Manages registration of bStats metrics for GravesX.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal intfinal intvoidRegisters bStats metrics under the GravesX bStats plugin ID.voidRegisters bStats metrics under the legacy Graves bStats plugin ID.
-
Constructor Details
-
MetricsManager
Creates a new metrics manager.- Parameters:
plugin- the GravesX plugin instance
-
-
Method Details
-
registerMetrics
public void registerMetrics()Registers bStats metrics under the GravesX bStats plugin ID.This method creates a new
Metricsinstance and adds the plugin's custom charts. -
registerMetricsLegacy
public void registerMetricsLegacy()Registers bStats metrics under the legacy Graves bStats plugin ID.This is intended to preserve continuity with older plugin versions that reported to the legacy bStats listing, while still emitting the same set of charts.
-
getMetricsID
public final int getMetricsID()- Returns:
- the bStats plugin ID used for usage metrics.
-
getMetricsIDLegacy
public final int getMetricsIDLegacy()- Returns:
- the legacy bStats plugin ID (for previous plugin versions).
-