Create BukkitPlatformScheduler

This commit is contained in:
Shane Freeder
2020-02-01 02:29:02 +00:00
parent 48e547e51f
commit c916070cd1
8 changed files with 188 additions and 22 deletions

View File

@ -219,21 +219,7 @@ public class mcMMO implements McMMOApi {
rankTools.populateRanks();
}
//If anonymous statistics are enabled then use them
if (getConfigManager().getConfigMetrics().isAllowAnonymousUsageStatistics()) {
Metrics metrics;
metrics = new Metrics(this);
metrics.addCustomChart(new Metrics.SimplePie("version", this::getVersion));
int levelScaleModifier = configManager.getConfigLeveling().getConfigSectionLevelingGeneral().getConfigSectionLevelScaling().getCosmeticLevelScaleModifier();
if (levelScaleModifier == 10)
metrics.addCustomChart(new Metrics.SimplePie("scaling", () -> "Standard"));
else if (levelScaleModifier == 1)
metrics.addCustomChart(new Metrics.SimplePie("scaling", () -> "Retro"));
else
metrics.addCustomChart(new Metrics.SimplePie("scaling", () -> "Custom"));
}
platformProvider.checkMetrics();
} catch (Throwable t) {
getLogger().severe("There was an error while enabling mcMMO!");
t.printStackTrace();