Use bstats for metrics

The metrics config option will be removed in the future
 - The current value will be copied over when generating bstats config
This commit is contained in:
Jesse Boyd
2019-07-09 17:46:27 +10:00
parent f99d6e7478
commit 19468b64d4
6 changed files with 375 additions and 708 deletions

View File

@ -178,6 +178,11 @@ public class Fawe {
WEManager.IMP.managers.add(new PlotSquaredFeature());
Fawe.debug("Plugin 'PlotSquared' found. Using it now.");
} catch (Throwable ignored) {}
try {
imp().startMetrics();
} catch (Throwable ignored) {
debug(ignored.getMessage());
}
}, 0);
TaskManager.IMP.repeat(timer, 1);

View File

@ -49,7 +49,6 @@ public class Flood {
int Z = MathMan.unpairIntY(firstKey);
int[][] chunkQueue = chunkQueues.get(firstKey);
// apply
TODO
}
}

View File

@ -29,7 +29,7 @@ public class Settings extends Config {
@Comment({"Options: cn, de, es, fr, it, nl, ru, tr",
"Create a PR to contribute a translation: https://github.com/IntellectualSites/FastAsyncWorldEdit-1.13/tree/master/worldedit-core/src/main/resources",})
public String LANGUAGE = "";
@Comment("Send anonymous usage statistics")
@Comment("@deprecated - use bstats config.yml")
public boolean METRICS = true;
@Comment({
"Set true to enable WorldEdit restrictions per region (e.g. PlotSquared or WorldGuard).",