模块 mxlib.bukkit

类 Metrics


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

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

    • 字段详细资料

      • B_STATS_VERSION

        public static final int B_STATS_VERSION
        另请参阅:
        常量字段值
    • 构造器详细资料

      • Metrics

        public Metrics​(Plugin plugin)
        Class constructor.
        参数:
        plugin - The plugin which stats should be submitted.
    • 方法详细资料

      • isEnabled

        public boolean isEnabled()
        Checks if bStats is enabled.
        返回:
        Whether bStats is enabled or not.
      • addCustomChart

        public void addCustomChart​(Metrics.CustomChart chart)
        Adds a custom chart.
        参数:
        chart - The chart to add.
      • getPluginData

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