mirror of
https://github.com/EssentialsX/Essentials.git
synced 2024-12-28 12:07:38 +01:00
Fix eco take derp.
This commit is contained in:
parent
6170540a24
commit
1679790157
@ -126,17 +126,12 @@ public class Commandeco extends EssentialsCommand
|
||||
break;
|
||||
|
||||
case TAKE:
|
||||
if (player.canAfford(amount))
|
||||
if (!player.canAfford(amount))
|
||||
{
|
||||
player.takeMoney(amount);
|
||||
}
|
||||
else
|
||||
{
|
||||
if (player.getMoney() > 0)
|
||||
{
|
||||
player.setMoney(0);
|
||||
}
|
||||
throw new Exception(_("notEnoughMoney"));
|
||||
|
||||
}
|
||||
player.takeMoney(amount, sender);
|
||||
break;
|
||||
|
||||
case RESET:
|
||||
|
Loading…
Reference in New Issue
Block a user