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
Nested ClassesModifier and TypeClassDescriptionstatic classRepresents a custom advanced bar chart.static classRepresents a custom advanced map chart.static classRepresents a custom advanced pie.static classA enum which is used for custom maps.static classRepresents a custom chart.static classRepresents a custom multi line chart.static classRepresents a custom simple bar chart.static classRepresents a custom simple map chart.static classRepresents a custom simple pie.static classRepresents a custom single line chart. -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddCustomChart(Metrics.CustomChart chart)Adds a custom chart.org.json.simple.JSONObjectGets 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.
-