File tree Expand file tree Collapse file tree
src/main/java/me/hsgamer/bettergui Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2222import me .hsgamer .hscore .config .proxy .ConfigGenerator ;
2323import org .bstats .bukkit .Metrics ;
2424import org .bstats .charts .AdvancedPie ;
25- import org .bstats .charts .DrilldownPie ;
2625import org .bukkit .plugin .java .JavaPlugin ;
2726
2827import java .util .Arrays ;
29- import java .util .HashMap ;
3028import java .util .List ;
31- import java .util .Map ;
3229
3330/**
3431 * The main class of the plugin
@@ -97,12 +94,6 @@ public void postEnable() {
9794 get (AddonManager .class ).call (PostEnable .class , PostEnable ::postEnable );
9895
9996 Metrics metrics = new Metrics (this , 6609 );
100- metrics .addCustomChart (new DrilldownPie ("addon" , () -> {
101- Map <String , Map <String , Integer >> map = new HashMap <>();
102- Map <String , Integer > addons = get (AddonManager .class ).getExpansionCount ();
103- map .put (String .valueOf (addons .size ()), addons );
104- return map ;
105- }));
10697 metrics .addCustomChart (new AdvancedPie ("addon_count" , get (AddonManager .class )::getExpansionCount ));
10798
10899 if (getDescription ().getVersion ().contains ("SNAPSHOT" )) {
You can’t perform that action at this time.
0 commit comments