Fix eco take derp.

This commit is contained in:
KHobbits 2013-01-20 19:43:59 +00:00
parent 6170540a24
commit 1679790157

View File

@ -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: