Skip to content

Commit

Permalink
Fix boss bar income showing for jobs enabled without economy
Browse files Browse the repository at this point in the history
  • Loading branch information
Archy-X committed Jul 28, 2024
1 parent abe0ff0 commit b617c60
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,9 @@ private double addJobsIncome(User user, Skill skill, double amount, @Nullable Xp
if (plugin.config().jobSelectionEnabled() && !user.getJobs().contains(skill)) {
return 0.0;
}
if (!plugin.getHookManager().isRegistered(EconomyHook.class)) {
return 0.0;
}

double income = source.getIncome().getIncomeEarned(user.toApi(), source.getValues(), skill, amount);
double originalIncome = income;
Expand Down

0 comments on commit b617c60

Please sign in to comment.