We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 405fc80 commit 81f9408Copy full SHA for 81f9408
src/main/java/pro/cloudnode/smp/bankaccounts/commands/InvoiceCommand.java
@@ -84,7 +84,7 @@ else if (args.length == 3) {
84
if (!sender.hasPermission(Permissions.INVOICE_SEND)) break;
85
if (args.length == 2) {
86
if (sender.hasPermission(Permissions.INVOICE_SEND_OTHER)) list.addAll(Arrays.stream(Invoice.get()).map(a -> a.id).toList());
87
- else list.addAll(Arrays.stream(Invoice.get(BankAccounts.getOfflinePlayer(sender))).map(a -> a.id).toList());
+ else list.addAll(Arrays.stream(Invoice.get(BankAccounts.getOfflinePlayer(sender), Account.get(BankAccounts.getOfflinePlayer(sender)))).filter(i -> i.transaction == null).map(a -> a.id).toList());
88
}
89
90
case "list" -> {
0 commit comments