Skip to content
Permalink
Browse files

Bump bStats

  • Loading branch information
me4502 committed Jan 1, 2020
1 parent f5ca094 commit 311bdbb105b1878af5c48e64639367e14a2c1bf0
Showing with 6 additions and 4 deletions.
  1. +2 −2 build.gradle
  2. +4 −2 src/main/java/com/sk89q/craftbook/bukkit/CraftBookPlugin.java
@@ -103,7 +103,7 @@ allprojects {
compile 'net.milkbowl.vault:VaultAPI:1.6'
compile 'com.comphenix.protocol:ProtocolLib-API:4.4.0'
compile 'fr.neatmonster:nocheatplus:3.15.1-RC'
compile 'org.bstats:bstats-bukkit:1.4'
compile 'org.bstats:bstats-bukkit:1.5'
testCompile group: 'junit', name: 'junit', version: '4.12'
testCompile group: 'org.powermock', name: 'powermock-api-mockito', version: '1.6.1'
testCompile group: 'org.powermock', name: 'powermock-module-junit4', version: '1.6.1'
@@ -148,7 +148,7 @@ allprojects {
include(dependency('io.papermc:paperlib'))
include(dependency('com.sk89q:squirrelid'))
relocate ("org.bstats", "com.sk89q.craftbook.bukkit.bstats") {
include(dependency("org.bstats:bstats-bukkit:1.4"))
include(dependency("org.bstats:bstats-bukkit:1.5"))
}
}
relocate 'com.sk89q.squirrelid', 'com.sk89q.craftbook.util.profile'
@@ -724,8 +724,10 @@ else if (String.valueOf(date).endsWith("3"))
logDebugMessage("Initializing Metrics!", "startup");
Metrics metrics = new Metrics(this);

metrics.addCustomChart(new Metrics.AdvancedPie("language", () -> languageManager.getLanguages().stream().collect(Collectors.toMap(Function.identity(), o -> 1))));
metrics.addCustomChart(new Metrics.SimpleBarChart("enabled_mechanics", () -> mechanics.stream().collect(Collectors.toMap(mech -> mech.getClass().getSimpleName(), o -> 1))));
metrics.addCustomChart(new Metrics.AdvancedPie("language",
() -> languageManager.getLanguages().stream().collect(Collectors.toMap(Function.identity(), o -> 1))));
metrics.addCustomChart(new Metrics.SimpleBarChart("enabled_mechanics",
() -> mechanics.stream().collect(Collectors.toMap(mech -> mech.getClass().getSimpleName(), o -> 1))));
} catch (Throwable e1) {
CraftBookBukkitUtil.printStacktrace(e1);
}

0 comments on commit 311bdbb

Please sign in to comment.
You can’t perform that action at this time.