mirror of
https://github.com/ChestShop-authors/ChestShop-3.git
synced 2025-01-08 08:08:05 +01:00
Add ENSURE_CORRECT_PLAYERID to properties metrics chart
Also fix missing new line in metrics chart code.
This commit is contained in:
parent
fd81bc143e
commit
8aff3da550
@ -427,7 +427,8 @@ public class ChestShop extends JavaPlugin {
|
|||||||
"total", MetricsModule.getTotalTransactions(),
|
"total", MetricsModule.getTotalTransactions(),
|
||||||
"buy", MetricsModule.getBuyTransactions(),
|
"buy", MetricsModule.getBuyTransactions(),
|
||||||
"sell", MetricsModule.getSellTransactions()
|
"sell", MetricsModule.getSellTransactions()
|
||||||
)));bStats.addCustomChart(new Metrics.MultiLineChart("itemCount", () -> ImmutableMap.of(
|
)));
|
||||||
|
bStats.addCustomChart(new Metrics.MultiLineChart("itemCount", () -> ImmutableMap.of(
|
||||||
"total", MetricsModule.getTotalItemsCount(),
|
"total", MetricsModule.getTotalItemsCount(),
|
||||||
"buy", MetricsModule.getSoldItemsCount(),
|
"buy", MetricsModule.getSoldItemsCount(),
|
||||||
"sell", MetricsModule.getBoughtItemsCount()
|
"sell", MetricsModule.getBoughtItemsCount()
|
||||||
@ -438,6 +439,7 @@ public class ChestShop extends JavaPlugin {
|
|||||||
|
|
||||||
bStats.addCustomChart(new Metrics.AdvancedBarChart("pluginProperties", () -> {
|
bStats.addCustomChart(new Metrics.AdvancedBarChart("pluginProperties", () -> {
|
||||||
Map<String, int[]> map = new LinkedHashMap<>();
|
Map<String, int[]> map = new LinkedHashMap<>();
|
||||||
|
map.put("ensure-correct-playerid", getChartArray(Properties.ENSURE_CORRECT_PLAYERID));
|
||||||
map.put("reverse-buttons", getChartArray(Properties.REVERSE_BUTTONS));
|
map.put("reverse-buttons", getChartArray(Properties.REVERSE_BUTTONS));
|
||||||
map.put("shift-sells-in-stacks", getChartArray(Properties.SHIFT_SELLS_IN_STACKS));
|
map.put("shift-sells-in-stacks", getChartArray(Properties.SHIFT_SELLS_IN_STACKS));
|
||||||
map.put("shift-sells-everything", getChartArray(Properties.SHIFT_SELLS_EVERYTHING));
|
map.put("shift-sells-everything", getChartArray(Properties.SHIFT_SELLS_EVERYTHING));
|
||||||
|
Loading…
Reference in New Issue
Block a user