Fix {MONEY_DONE} variable

This commit is contained in:
okx-code
2020-11-28 18:15:38 +00:00
parent af5bb93cd0
commit eb27d1f89a
@@ -469,7 +469,7 @@ public class RankupPlugin extends JavaPlugin {
if (amount != null && economy != null) { if (amount != null && economy != null) {
builder.replace(Variable.MONEY_NEEDED, formatMoney(amount)); builder.replace(Variable.MONEY_NEEDED, formatMoney(amount));
builder.replace(Variable.MONEY, formatMoney(money.getValueDouble())); builder.replace(Variable.MONEY, formatMoney(money.getValueDouble()));
builder.replace(Variable.MONEY_DONE, formatMoney(total)); builder.replace(Variable.MONEY_DONE, formatMoney(total - amount));
} }
} }
if (sender instanceof Player) { if (sender instanceof Player) {