@@ -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
@@ -1085,13 +1083,9 @@ public int invoicePerPage() {
10851083 Objects .requireNonNull (config .getString ("messages.baltop.header" ))
10861084 .replace ("<category>" , category )
10871085 .replace ("<page>" , String .valueOf (page ))
1088- ).replaceText (configurer -> {
1089- configurer .matchLiteral ("<cmd-prev>" );
1090- configurer .replacement (cmdPrev );
1091- }).replaceText (configurer -> {
1092- configurer .matchLiteral ("<cmd-next>" );
1093- configurer .replacement (cmdNext );
1094- });
1086+ .replace ("<cmd-prev>" , cmdPrev )
1087+ .replace ("<cmd-next>" , cmdNext )
1088+ );
10951089 }
10961090
10971091 // messages.baltop.entry
0 commit comments