Don't fail on metrics error

This commit is contained in:
Jesse Boyd 2019-04-13 12:26:19 +10:00
parent 1e78368115
commit 04779d28fb
No known key found for this signature in database
GPG Key ID: 59F1DE6293AF6E1F

View File

@ -657,11 +657,15 @@ public final class BukkitMain extends JavaPlugin implements Listener, IPlotMain
if (this.metricsStarted) {
return;
}
System.setProperty("bstats.relocatecheck",
"false"); // We do not want to relocate the package...
Metrics metrics = new Metrics(this);// bstats
PlotSquared.log(Captions.PREFIX + "&6Metrics enabled.");
this.metricsStarted = true;
try {
System.setProperty("bstats.relocatecheck",
"false"); // We do not want to relocate the package...
Metrics metrics = new Metrics(this);// bstats
PlotSquared.log(Captions.PREFIX + "&6Metrics enabled.");
} catch (Throwable e) {
e.printStackTrace();
}
}
@Override public ChunkManager initChunkManager() {