Package com.bencodez.votingplugin.bungee
Class BStatsMetricsBungee
java.lang.Object
com.bencodez.votingplugin.bungee.BStatsMetricsBungee
bStats collects some data for plugin authors.
Check out https://bStats.org/ to learn more about bStats!
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
Represents a custom advanced bar chart.static class
Represents a custom advanced pie.static class
Represents a custom chart.static class
Represents a custom drilldown pie.static class
Represents a custom multi line chart.static class
Represents a custom simple bar chart.static class
Represents a custom simple pie.static class
Represents a custom single line chart. -
Field Summary
-
Constructor Summary
ConstructorDescriptionBStatsMetricsBungee
(net.md_5.bungee.api.plugin.Plugin plugin, int pluginId) Class constructor. -
Method Summary
Modifier and TypeMethodDescriptionvoid
Adds a custom chart.com.google.gson.JsonObject
Gets the plugin specific data.boolean
Checks if bStats is enabled.static void
linkMetrics
(Object metrics) Links an other metrics class with this class.
-
Field Details
-
B_STATS_VERSION
public static final int B_STATS_VERSION- See Also:
-
-
Constructor Details
-
BStatsMetricsBungee
public BStatsMetricsBungee(net.md_5.bungee.api.plugin.Plugin plugin, int pluginId) Class constructor.- Parameters:
plugin
- The plugin which stats should be submitted.pluginId
- The id of the plugin. It can be found at What is my plugin id?
-
-
Method Details
-
linkMetrics
Links an other metrics class with this class. This method is called using Reflection.- Parameters:
metrics
- An object of the metrics class to link.
-
addCustomChart
Adds a custom chart.- Parameters:
chart
- The chart to add.
-
getPluginData
public com.google.gson.JsonObject getPluginData()Gets the plugin specific data. This method is called using Reflection.- Returns:
- The plugin specific data.
-
isEnabled
public boolean isEnabled()Checks if bStats is enabled.- Returns:
- Whether bStats is enabled or not.
-