mirror of
https://github.com/IntellectualSites/PlotSquared.git
synced 2024-11-29 08:36:45 +01:00
Don't fail on metrics error
This commit is contained in:
parent
1e78368115
commit
04779d28fb
@ -657,11 +657,15 @@ public final class BukkitMain extends JavaPlugin implements Listener, IPlotMain
|
|||||||
if (this.metricsStarted) {
|
if (this.metricsStarted) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
this.metricsStarted = true;
|
||||||
|
try {
|
||||||
System.setProperty("bstats.relocatecheck",
|
System.setProperty("bstats.relocatecheck",
|
||||||
"false"); // We do not want to relocate the package...
|
"false"); // We do not want to relocate the package...
|
||||||
Metrics metrics = new Metrics(this);// bstats
|
Metrics metrics = new Metrics(this);// bstats
|
||||||
PlotSquared.log(Captions.PREFIX + "&6Metrics enabled.");
|
PlotSquared.log(Captions.PREFIX + "&6Metrics enabled.");
|
||||||
this.metricsStarted = true;
|
} catch (Throwable e) {
|
||||||
|
e.printStackTrace();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override public ChunkManager initChunkManager() {
|
@Override public ChunkManager initChunkManager() {
|
||||||
|
Loading…
Reference in New Issue
Block a user