mirror of
https://github.com/TotalFreedomMC/TF-EssentialsX.git
synced 2025-07-01 19:41:41 +00:00
Display users new balance on /eco give/take.
This commit is contained in:
parent
9f893e68e9
commit
e277acf80e
9 changed files with 23 additions and 18 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue