Display users new balance on /eco give/take.

This commit is contained in:
KHobbits 2012-02-26 04:27:13 +00:00
parent 9f893e68e9
commit e277acf80e
9 changed files with 23 additions and 18 deletions

View file

@ -46,8 +46,9 @@ public class Commandeco extends EssentialsCommand
break;
case TAKE:
if (!player.canAfford(amount, false)) {
throw new Exception(_("notEnoughMoney"));
if (!player.canAfford(amount, false))
{
throw new Exception(_("notEnoughMoney"));
}
player.takeMoney(amount);
break;
@ -68,6 +69,10 @@ public class Commandeco extends EssentialsCommand
break;
case TAKE:
if (!player.canAfford(amount, false))
{
throw new Exception(_("notEnoughMoney"));
}
player.takeMoney(amount, sender);
break;