Package org.bstats.config
Class MetricsConfig
- java.lang.Object
-
- org.bstats.config.MetricsConfig
-
public class MetricsConfig extends java.lang.ObjectA simple config for bStats. This class is not used by every platform.
-
-
Constructor Summary
Constructors Constructor Description MetricsConfig(java.io.File file, boolean defaultEnabled)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleandidExistBefore()Checks whether the config file did exist before or not.java.lang.StringgetServerUUID()booleanisEnabled()booleanisLogErrorsEnabled()booleanisLogResponseStatusTextEnabled()booleanisLogSentDataEnabled()
-
-
-
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.
-
-