mirror of
https://github.com/essentials/Essentials.git
synced 2025-02-24 00:13:48 +01:00
Fix eco take derp.
This commit is contained in:
parent
282be645ae
commit
8f9eebf222
@ -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…
x
Reference in New Issue
Block a user