Fix bStats error when starting in dev.

This commit is contained in:
Seppe Volkaerts
2021-05-17 23:29:40 +02:00
parent 9643159826
commit 404936a53f

View File

@@ -52,6 +52,11 @@ public class Metrics {
return;
}
// Disable the relocate check if velocity doesn't have bStats relocated, this happens in dev
if (!MetricsBase.class.getPackageName().startsWith(getClass().getPackageName())) {
System.setProperty("bstats.relocatecheck", "false");
}
metricsBase = new MetricsBase(
"server-implementation",
config.getServerUUID(),