Class Metrics

java.lang.Object
net.citizensnpcs.Metrics

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

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

  • Constructor Details

    • Metrics

      public Metrics(JavaPlugin plugin, int serviceId)
      Creates a new Metrics instance.
      Parameters:
      plugin - Your plugin instance.
      serviceId - The id of the service. It can be found at What is my plugin id?
  • Method Details

    • addCustomChart

      public void addCustomChart(Metrics.CustomChart chart)
      Adds a custom chart.
      Parameters:
      chart - The chart to add.