Package ch.njol.skript
Class Metrics
java.lang.Object
ch.njol.skript.Metrics
bStats collects some data for plugin authors.
Check out https://bStats.org/ to learn more about bStats!
Slightly modified for usage in Skript, still under original license though.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
Represents a custom advanced bar chart.static class
Represents a custom advanced map chart.static class
Represents a custom advanced pie.static class
A enum which is used for custom maps.static class
Represents a custom chart.static class
Represents a custom multi line chart.static class
Represents a custom simple bar chart.static class
Represents a custom simple map chart.static class
Represents a custom simple pie.static class
Represents a custom single line chart. -
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addCustomChart(Metrics.CustomChart chart)
Adds a custom chart.org.json.simple.JSONObject
Gets the plugin specific data.
-
Field Details
-
B_STATS_VERSION
public static final int B_STATS_VERSION- See Also:
- Constant Field Values
-
-
Constructor Details
-
Metrics
public Metrics(org.bukkit.plugin.java.JavaPlugin plugin)Class constructor.- Parameters:
plugin
- The plugin which stats should be submitted.
-
-
Method Details
-
addCustomChart
Adds a custom chart.- Parameters:
chart
- The chart to add.
-
getPluginData
public org.json.simple.JSONObject getPluginData()Gets the plugin specific data. This method is called using Reflection.- Returns:
- The plugin specific data.
-