Skip to content

Commit 6ca80d0

Browse files
committed
Fix bank transfer confirmation message
1 parent 5fb4c11 commit 6ca80d0

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

src/main/java/pro/cloudnode/smp/bankaccounts/BankConfig.java

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -836,12 +836,10 @@ public int invoicePerPage() {
836836
.replace("<to-balance-short>", BankAccounts.formatCurrencyShort(to.balance))
837837
.replace("<amount>", amount.toPlainString())
838838
.replace("<amount-formatted>", BankAccounts.formatCurrency(amount))
839-
.replace("<amount-short>", BankAccounts.formatCurrencyShort(amount)),
839+
.replace("<amount-short>", BankAccounts.formatCurrencyShort(amount))
840+
.replace("<confirm-command>", "/bank transfer --confirm " + from.id + " " + to.id + " " + amount.toPlainString() + (description == null ? "" : " " + description)),
840841
Placeholder.component("description", description == null ? MiniMessage.miniMessage().deserialize("<gray><i>no description</i>") : Component.text(description))
841-
).replaceText(configurer -> {
842-
configurer.matchLiteral("<confirm-command>");
843-
configurer.replacement(Component.text("/bank transfer --confirm " + from.id + " " + to.id + " " + amount.toPlainString() + (description == null ? "" : " " + description)));
844-
});
842+
);
845843
}
846844

847845
// messages.transfer-sent

0 commit comments

Comments
 (0)