Class 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!

    • 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.