Class Metrics
- java.lang.Object
-
- net.alpenblock.bungeeperms.metrics.velocity.Metrics
-
public class Metrics extends java.lang.Object
bStats collects some data for plugin authors.Check out https://bStats.org/ to learn more about bStats!
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Metrics.AdvancedBarChart
Represents a custom advanced bar chart.static class
Metrics.AdvancedPie
Represents a custom advanced pie.static class
Metrics.CustomChart
Represents a custom chart.static class
Metrics.DrilldownPie
Represents a custom drilldown pie.static class
Metrics.MultiLineChart
Represents a custom multi line chart.static class
Metrics.PluginData
Represents a class for taking data about a pluginstatic class
Metrics.SimpleBarChart
Represents a custom simple bar chart.static class
Metrics.SimplePie
Represents a custom simple pie.static class
Metrics.SingleLineChart
Represents a custom single line chart.
-
Field Summary
Fields Modifier and Type Field Description static int
B_STATS_VERSION
-
Constructor Summary
Constructors Constructor Description Metrics(Metrics.PluginData pluginData)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addCustomChart(Metrics.CustomChart chart)
Adds a custom chart.com.google.gson.JsonObject
getPluginData()
Gets the plugin specific data.boolean
isEnabled()
Checks if bStats is enabled.static void
linkMetrics(java.lang.Object metrics)
Links an other metrics class with this class.
-
-
-
Field Detail
-
B_STATS_VERSION
public static final int B_STATS_VERSION
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
Metrics
public Metrics(Metrics.PluginData pluginData)
-
-
Method Detail
-
isEnabled
public boolean isEnabled()
Checks if bStats is enabled.- Returns:
- Whether bStats is enabled or not.
-
addCustomChart
public void addCustomChart(Metrics.CustomChart chart)
Adds a custom chart.- Parameters:
chart
- The chart to add.
-
linkMetrics
public static void linkMetrics(java.lang.Object metrics)
Links an other metrics class with this class. This method is called using Reflection.- Parameters:
metrics
- An object of the metrics class to link.
-
getPluginData
public com.google.gson.JsonObject getPluginData()
Gets the plugin specific data. This method is called using Reflection.- Returns:
- The plugin specific data.
-
-