mirror of
https://github.com/IntellectualSites/PlotSquared.git
synced 2024-11-22 13:16:45 +01:00
Cant use bar chart
This commit is contained in:
parent
336f27f078
commit
5b30711470
@ -717,17 +717,8 @@ public final class BukkitMain extends JavaPlugin implements Listener, IPlotMain
|
|||||||
}
|
}
|
||||||
return map;
|
return map;
|
||||||
}));
|
}));
|
||||||
metrics.addCustomChart(new Metrics.SimpleBarChart("premium", () -> {
|
metrics.addCustomChart(new Metrics.SimplePie("premium",
|
||||||
final Map<String, Integer> map = new HashMap<>();
|
() -> PremiumVerification.isPremium() ? "Premium" : "Non-Premium"));
|
||||||
if(PremiumVerification.isPremium()) {
|
|
||||||
map.put("Premium", 1);
|
|
||||||
map.put("Non-Premium", 0);
|
|
||||||
} else {
|
|
||||||
map.put("Premium", 0);
|
|
||||||
map.put("Non-Premium", 1);
|
|
||||||
}
|
|
||||||
return map;
|
|
||||||
}));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override public ChunkManager initChunkManager() {
|
@Override public ChunkManager initChunkManager() {
|
||||||
|
Loading…
Reference in New Issue
Block a user