Class Metrics.Factory

java.lang.Object
net.ME1312.SubServers.Velocity.Library.Metrics.Factory
Enclosing class:
Metrics

public static class Metrics.Factory extends Object
A factory to create new Metrics classes.
  • Method Details

    • make

      public Metrics make(Object plugin, int serviceId)
      Creates a new Metrics class.
      Parameters:
      plugin - The plugin instance.
      serviceId - The id of the service. It can be found at What is my plugin id?

      Not to be confused with Velocity's PluginDescription.getId() method!

      Returns:
      A Metrics instance that can be used to register custom charts.

      The return value can be ignored, when you do not want to register custom charts.