mirror of
https://github.com/AppleDash/SaneEconomy.git
synced 2024-09-28 22:47:47 +02:00
Fix another /eco set bug.
This commit is contained in:
parent
fab5b76b64
commit
c63a15dac5
@ -113,17 +113,19 @@ public class EconomyAdminCommand extends SaneEconomyCommand {
|
||||
ecoMan.setBalance(economable, amount);
|
||||
MessageUtils.sendMessage(sender, _("Balance for %s set to %s."), sTargetPlayer, ecoMan.getCurrency().formatAmount(amount));
|
||||
|
||||
// FIXME: This is a silly hack to get it to log.
|
||||
if (oldBal > 0.0) {
|
||||
if (saneEconomy.shouldLogTransactions()) {
|
||||
// FIXME: This is a silly hack to get it to log.
|
||||
if (oldBal > 0.0) {
|
||||
saneEconomy.getTransactionLogger().logTransaction(new Transaction(
|
||||
economable, Economable.CONSOLE, oldBal, TransactionReason.ADMIN
|
||||
));
|
||||
}
|
||||
|
||||
saneEconomy.getTransactionLogger().logTransaction(new Transaction(
|
||||
economable, Economable.CONSOLE, oldBal, TransactionReason.ADMIN
|
||||
Economable.CONSOLE, economable, amount, TransactionReason.ADMIN
|
||||
));
|
||||
}
|
||||
|
||||
saneEconomy.getTransactionLogger().logTransaction(new Transaction(
|
||||
Economable.CONSOLE, economable, amount, TransactionReason.ADMIN
|
||||
));
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user