mirror of
https://github.com/essentials/Essentials.git
synced 2025-08-12 09:35:26 +02:00
Fix eco take derp.
This commit is contained in:
@@ -126,17 +126,12 @@ public class Commandeco extends EssentialsCommand
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
case TAKE:
|
case TAKE:
|
||||||
if (player.canAfford(amount))
|
if (!player.canAfford(amount))
|
||||||
{
|
{
|
||||||
player.takeMoney(amount);
|
throw new Exception(_("notEnoughMoney"));
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
if (player.getMoney() > 0)
|
|
||||||
{
|
|
||||||
player.setMoney(0);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
player.takeMoney(amount, sender);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case RESET:
|
case RESET:
|
||||||
|
Reference in New Issue
Block a user