Skip to content

Commit

Permalink
Merge pull request #11 from TheNextLvl-net/charts-fix
Browse files Browse the repository at this point in the history
Charts fix
  • Loading branch information
NonSwag authored Sep 2, 2024
2 parents be4b4e8 + 26bac44 commit 4d96463
Showing 1 changed file with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -220,9 +220,11 @@ private void printServices() {
}

private void addCustomCharts() {
addCustomChart(Chat.class, Chat::getName, "chat");
addCustomChart(Economy.class, Economy::getName, "economy");
addCustomChart(Permission.class, Permission::getName, "permission");
addCustomChart(BankController.class, BankController::getName, "bank provider");
addCustomChart(GroupController.class, GroupController::getName, "group provider");
addCustomChart(ChatController.class, ChatController::getName, "chat provider");
addCustomChart(EconomyController.class, EconomyController::getName, "economy provider");
addCustomChart(PermissionController.class, PermissionController::getName, "permission provider");
}

private <T> void addCustomChart(Class<T> service, Function<T, String> function, String name) {
Expand Down

0 comments on commit 4d96463

Please sign in to comment.