Class Metrics

java.lang.Object
ch.njol.skript.Metrics

public class Metrics extends Object
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.
  • Field Details

  • 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

      public void addCustomChart(Metrics.CustomChart chart)
      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.