Class MetricsConfig


  • public class MetricsConfig
    extends java.lang.Object
    A simple config for bStats. This class is not used by every platform.
    • Constructor Detail

      • MetricsConfig

        public MetricsConfig​(java.io.File file,
                             boolean defaultEnabled)
                      throws java.io.IOException
        Throws:
        java.io.IOException
    • Method Detail

      • getServerUUID

        public java.lang.String getServerUUID()
      • isEnabled

        public boolean isEnabled()
      • isLogErrorsEnabled

        public boolean isLogErrorsEnabled()
      • isLogSentDataEnabled

        public boolean isLogSentDataEnabled()
      • isLogResponseStatusTextEnabled

        public boolean isLogResponseStatusTextEnabled()
      • didExistBefore

        public boolean didExistBefore()
        Checks whether the config file did exist before or not.
        Returns:
        If the config did exist before.