java.lang.Object
nl.mtvehicles.core.infrastructure.utils.Metrics

public class Metrics extends Object
bStats collects some data for plugin authors.

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

  • Field Details

  • Constructor Details

    • Metrics

      public Metrics(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 Details

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

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