Separate economy adapter from other dependencies in metrics

This commit is contained in:
Phoenix616 2023-06-15 15:27:03 +01:00
parent ed642ccf3c
commit 97ffc31d2b
No known key found for this signature in database
GPG Key ID: 40E2321E71738EB0
1 changed files with 1 additions and 2 deletions

View File

@ -105,8 +105,7 @@ public class Dependencies implements Listener {
return false;
}
versions.put(plugin, Bukkit.getPluginManager().getPlugin(plugin).getDescription().getVersion());
ChestShop.getMetrics().addCustomChart(ChestShop.createStaticDrilldownStat("economyAdapter", plugin, Bukkit.getPluginManager().getPlugin(plugin).getDescription().getVersion()));
ChestShop.getMetrics().addCustomChart(ChestShop.createStaticDrilldownStat("economyPlugin", economy.getProviderInfo().getName(), economy.getProviderInfo().getVersion()));
ChestShop.registerListener(economy);