World Blacklist cleanup, metric config pt 2

This commit is contained in:
nossr50
2019-03-14 21:28:23 -07:00
parent 96b781ab0a
commit fb1467551f
4 changed files with 14 additions and 23 deletions

View File

@ -436,15 +436,6 @@ public class MainConfig extends ConfigValidated {
*/
/* General Settings */
public boolean getIsMetricsEnabled() {
return getBooleanValue(METRICS, BSTATS);
}
//Retro mode will default the value to true if the config file doesn't contain the entry (server is from a previous mcMMO install)
public boolean getIsRetroMode() {
return getBooleanValue(GENERAL, RETRO_MODE, ENABLED);
}
public String getLocale() {
if(hasNode(GENERAL, LOCALE))
return getStringValue(GENERAL, LOCALE);

View File

@ -13,7 +13,6 @@ import java.util.ArrayList;
public class WorldBlacklist {
public static boolean isWorldBlacklisted(World world) {
for (String s : mcMMO.getConfigManager().getConfigWorldBlacklist().getBlackListedWorlds()) {
if (world.getName().equalsIgnoreCase(s))
return true;

View File

@ -1,8 +1,20 @@
package com.gmail.nossr50.config.hocon.metrics;
import ninja.leaping.configurate.objectmapping.Setting;
import ninja.leaping.configurate.objectmapping.serialize.ConfigSerializable;
@ConfigSerializable
public class ConfigMetrics {
public static final boolean ALLOW_STAT_TRACKING_DEFAULT = true;
@Setting(value = "Allow-Anonymous-Statistic-Collection", comment = "Collects info about what version of mcMMO you are using and other information" +
"\nAll information is completely anonymous, and that info is reported to bstats for data processing." +
"\nThis setting should have no affect on your server whatsoever, so I'd like to discourage you from turning it off." +
"\nDefault value: "+ALLOW_STAT_TRACKING_DEFAULT)
private boolean allowAnonymousUsageStatistics = ALLOW_STAT_TRACKING_DEFAULT;
public boolean isAllowAnonymousUsageStatistics() {
return allowAnonymousUsageStatistics;
}
}