Class MetricsLite


  • public class MetricsLite
    extends java.lang.Object
    bStats collects some data for plugin authors.

    Check out https://bStats.org/ to learn more about bStats!

    • Field Summary

      Fields 
      Modifier and Type Field Description
      static int B_STATS_VERSION  
    • Constructor Summary

      Constructors 
      Constructor Description
      MetricsLite​(org.bukkit.plugin.Plugin plugin, int pluginId)
      Class constructor.
    • Method Summary

      Modifier and Type Method Description
      com.google.gson.JsonObject getPluginData()
      Gets the plugin specific data.
      boolean isEnabled()
      Checks if bStats is enabled.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • MetricsLite

        public MetricsLite​(org.bukkit.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 Detail

      • isEnabled

        public boolean isEnabled()
        Checks if bStats is enabled.
        Returns:
        Whether bStats is enabled or not.
      • getPluginData

        public com.google.gson.JsonObject getPluginData()
        Gets the plugin specific data. This method is called using Reflection.
        Returns:
        The plugin specific data.