Change metrics to use existing chart
This commit is contained in:
parent
ee9240385e
commit
22c258b4fc
@ -1,5 +1,6 @@
|
|||||||
package me.libraryaddict.disguise.utilities.metrics;
|
package me.libraryaddict.disguise.utilities.metrics;
|
||||||
|
|
||||||
|
import me.libraryaddict.disguise.DisguiseAPI;
|
||||||
import me.libraryaddict.disguise.DisguiseConfig;
|
import me.libraryaddict.disguise.DisguiseConfig;
|
||||||
import me.libraryaddict.disguise.LibsDisguises;
|
import me.libraryaddict.disguise.LibsDisguises;
|
||||||
import me.libraryaddict.disguise.disguisetypes.Disguise;
|
import me.libraryaddict.disguise.disguisetypes.Disguise;
|
||||||
@ -63,6 +64,8 @@ public class MetricsInitalizer {
|
|||||||
} else {
|
} else {
|
||||||
premiumType = "Paid Builds";
|
premiumType = "Paid Builds";
|
||||||
}
|
}
|
||||||
|
} else if (LibsPremium.isAPIPlugin()) {
|
||||||
|
premiumType = "Free Plugin";
|
||||||
} else {
|
} else {
|
||||||
premiumType = "Free Builds";
|
premiumType = "Free Builds";
|
||||||
}
|
}
|
||||||
@ -74,13 +77,6 @@ public class MetricsInitalizer {
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
metrics.addCustomChart(new Metrics.SimplePie("ld_api") {
|
|
||||||
@Override
|
|
||||||
public String getValue() {
|
|
||||||
return "" + LibsPremium.isAPIPlugin();
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
metrics.addCustomChart(new Metrics.SimplePie("grabskin_command") {
|
metrics.addCustomChart(new Metrics.SimplePie("grabskin_command") {
|
||||||
@Override
|
@Override
|
||||||
public String getValue() {
|
public String getValue() {
|
||||||
|
Loading…
Reference in New Issue
Block a user