From 5b307114704665b8f64aaa9117042ece3caccfa5 Mon Sep 17 00:00:00 2001 From: dordsor21 Date: Tue, 21 Apr 2020 12:38:07 +0100 Subject: [PATCH] Cant use bar chart --- .../java/com/plotsquared/bukkit/BukkitMain.java | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) diff --git a/Bukkit/src/main/java/com/plotsquared/bukkit/BukkitMain.java b/Bukkit/src/main/java/com/plotsquared/bukkit/BukkitMain.java index c03423119..437353f90 100644 --- a/Bukkit/src/main/java/com/plotsquared/bukkit/BukkitMain.java +++ b/Bukkit/src/main/java/com/plotsquared/bukkit/BukkitMain.java @@ -717,17 +717,8 @@ public final class BukkitMain extends JavaPlugin implements Listener, IPlotMain } return map; })); - metrics.addCustomChart(new Metrics.SimpleBarChart("premium", () -> { - final Map map = new HashMap<>(); - if(PremiumVerification.isPremium()) { - map.put("Premium", 1); - map.put("Non-Premium", 0); - } else { - map.put("Premium", 0); - map.put("Non-Premium", 1); - } - return map; - })); + metrics.addCustomChart(new Metrics.SimplePie("premium", + () -> PremiumVerification.isPremium() ? "Premium" : "Non-Premium")); } @Override public ChunkManager initChunkManager() {