From 8aff3da550e460a34cd619bf40c41df1a16bd5f0 Mon Sep 17 00:00:00 2001 From: Phoenix616 Date: Wed, 18 Nov 2020 15:31:44 +0100 Subject: [PATCH] Add ENSURE_CORRECT_PLAYERID to properties metrics chart Also fix missing new line in metrics chart code. --- src/main/java/com/Acrobot/ChestShop/ChestShop.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/main/java/com/Acrobot/ChestShop/ChestShop.java b/src/main/java/com/Acrobot/ChestShop/ChestShop.java index 2d00b6f..ace82e1 100644 --- a/src/main/java/com/Acrobot/ChestShop/ChestShop.java +++ b/src/main/java/com/Acrobot/ChestShop/ChestShop.java @@ -427,7 +427,8 @@ public class ChestShop extends JavaPlugin { "total", MetricsModule.getTotalTransactions(), "buy", MetricsModule.getBuyTransactions(), "sell", MetricsModule.getSellTransactions() - )));bStats.addCustomChart(new Metrics.MultiLineChart("itemCount", () -> ImmutableMap.of( + ))); + bStats.addCustomChart(new Metrics.MultiLineChart("itemCount", () -> ImmutableMap.of( "total", MetricsModule.getTotalItemsCount(), "buy", MetricsModule.getSoldItemsCount(), "sell", MetricsModule.getBoughtItemsCount() @@ -438,6 +439,7 @@ public class ChestShop extends JavaPlugin { bStats.addCustomChart(new Metrics.AdvancedBarChart("pluginProperties", () -> { Map map = new LinkedHashMap<>(); + map.put("ensure-correct-playerid", getChartArray(Properties.ENSURE_CORRECT_PLAYERID)); map.put("reverse-buttons", getChartArray(Properties.REVERSE_BUTTONS)); map.put("shift-sells-in-stacks", getChartArray(Properties.SHIFT_SELLS_IN_STACKS)); map.put("shift-sells-everything", getChartArray(Properties.SHIFT_SELLS_EVERYTHING));