improve stats

This commit is contained in:
okx-code
2018-08-30 23:14:56 +01:00
parent c5bc6f8fac
commit 0bf3dd2a06
3 changed files with 68 additions and 0 deletions
+9
View File
@@ -33,6 +33,7 @@ import sh.okx.rankup.ranks.requirements.RequirementRegistry;
import sh.okx.rankup.ranks.requirements.XpLevelRequirement;
import java.io.File;
import java.io.IOException;
import java.text.DecimalFormat;
import java.util.List;
import java.util.Map;
@@ -111,6 +112,14 @@ public class Rankup extends JavaPlugin {
getLogger().severe("You may then copy in your config values from the old config.");
getLogger().severe("Check the changelog on the Rankup spigot page to see the changes.");
}
if(config.getBoolean("stats")) {
try {
new Stats().init(this);
} catch (IOException e) {
e.printStackTrace();
}
}
}
/**