mirror of
https://github.com/EssentialsX/Essentials.git
synced 2025-02-05 15:02:16 +01:00
Log takeMoney exception, even if we ignore it.
This commit is contained in:
parent
00655f724d
commit
e1d4129869
@ -195,7 +195,7 @@ public class User extends UserData implements Comparable<User>, IReplyTo, net.es
|
|||||||
}
|
}
|
||||||
catch (MaxMoneyException ex)
|
catch (MaxMoneyException ex)
|
||||||
{
|
{
|
||||||
//We shouldn't be able to throw an exception on subtract money
|
ess.getLogger().log(Level.WARNING, "Invalid call to takeMoney, total balance can't be more than the max-money limit.", ex);
|
||||||
}
|
}
|
||||||
sendMessage(tl("takenFromAccount", NumberUtil.displayCurrency(value, ess)));
|
sendMessage(tl("takenFromAccount", NumberUtil.displayCurrency(value, ess)));
|
||||||
if (initiator != null)
|
if (initiator != null)
|
||||||
|
Loading…
Reference in New Issue
Block a user