Fixed stats issue.

This commit is contained in:
matt 2019-04-01 22:09:59 -04:00
parent c3a54c167d
commit 3419bb6f30

View File

@ -86,8 +86,6 @@ public class Fawe {
private DefaultTransformParser transformParser; private DefaultTransformParser transformParser;
private ChatManager chatManager = new PlainChatManager(); private ChatManager chatManager = new PlainChatManager();
private BStats stats;
/** /**
* Get the implementation specific class * Get the implementation specific class
* *
@ -166,15 +164,6 @@ public class Fawe {
MainUtil.deleteOlder(MainUtil.getFile(IMP.getDirectory(), Settings.IMP.PATHS.CLIPBOARD), TimeUnit.DAYS.toMillis(Settings.IMP.CLIPBOARD.DELETE_AFTER_DAYS), false); MainUtil.deleteOlder(MainUtil.getFile(IMP.getDirectory(), Settings.IMP.PATHS.CLIPBOARD), TimeUnit.DAYS.toMillis(Settings.IMP.CLIPBOARD.DELETE_AFTER_DAYS), false);
}); });
if (Settings.IMP.METRICS) {
try {
this.stats = new BStats();
this.IMP.startMetrics();
TaskManager.IMP.later(() -> stats.start(), 1);
} catch (Throwable throwable) {
throwable.printStackTrace();
}
}
/* /*
* Instance independent stuff * Instance independent stuff
*/ */
@ -219,9 +208,6 @@ public class Fawe {
} }
public void onDisable() { public void onDisable() {
if (stats != null) {
stats.close();
}
} }
private boolean update() { private boolean update() {