mirror of
https://github.com/EssentialsX/Essentials.git
synced 2024-12-24 10:09:50 +01:00
Fix for the fix
This commit is contained in:
parent
32c689e0f5
commit
71d8744840
@ -58,7 +58,7 @@ public class Trade
|
||||
{
|
||||
if (getMoney() != null
|
||||
&& getMoney() > 0
|
||||
&& user.canAfford(getMoney()))
|
||||
&& !user.canAfford(getMoney()))
|
||||
{
|
||||
throw new ChargeException(_("notEnoughMoney"));
|
||||
}
|
||||
@ -72,7 +72,7 @@ public class Trade
|
||||
double money;
|
||||
if (command != null && !command.isEmpty()
|
||||
&& 0 < (money = getCommandCost(user))
|
||||
&& user.canAfford(money))
|
||||
&& !user.canAfford(money))
|
||||
{
|
||||
throw new ChargeException(_("notEnoughMoney"));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user