File tree Expand file tree Collapse file tree 1 file changed +1
-1
lines changed
src/main/java/pro/cloudnode/smp/bankaccounts/events Expand file tree Collapse file tree 1 file changed +1
-1
lines changed Original file line number Diff line number Diff line change @@ -37,7 +37,7 @@ else if (BankAccounts.getInstance().config().integrationsVaultEnabled()) {
3737 player .sendMessage (BankAccounts .getInstance ().config ().messagesUpdateAvailable (latestVersion ))
3838 ), 20L );
3939 }
40- if (player .hasPermission (Permissions .INVOICE_NOTIFY ) && BankAccounts .getInstance ().config ().invoiceNotifyJoin ()) {
40+ if (player .hasPermission (Permissions .INVOICE_NOTIFY ) && BankAccounts .getInstance ().config ().invoiceNotifyJoin () && Invoice . countUnpaid ( player ) > 0 ) {
4141 BankAccounts .getInstance ().getServer ().getScheduler ().runTaskLater (BankAccounts .getInstance (), () -> {
4242 final @ NotNull Optional <@ NotNull Component > message = BankAccounts .getInstance ().config ().messagesInvoiceNotify (Invoice .countUnpaid (player ));
4343 message .ifPresent (player ::sendMessage );
You can’t perform that action at this time.
0 commit comments