summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Essentials/src/com/earth2me/essentials/commands/Commandbalance.java2
-rw-r--r--Essentials/src/com/earth2me/essentials/commands/Commandeco.java10
2 files changed, 4 insertions, 8 deletions
diff --git a/Essentials/src/com/earth2me/essentials/commands/Commandbalance.java b/Essentials/src/com/earth2me/essentials/commands/Commandbalance.java
index 13a722d0e..53845cb3b 100644
--- a/Essentials/src/com/earth2me/essentials/commands/Commandbalance.java
+++ b/Essentials/src/com/earth2me/essentials/commands/Commandbalance.java
@@ -31,7 +31,7 @@ public class Commandbalance extends EssentialsCommand
|| !(user.isAuthorized("essentials.balance.others")
|| user.isAuthorized("essentials.balance.other"))
? user
- : getPlayer(server, args, 0)).getMoney();
+ : getPlayer(server, args, 0, true)).getMoney();
user.sendMessage(Util.format("balance", Util.formatCurrency(bal)));
}
}
diff --git a/Essentials/src/com/earth2me/essentials/commands/Commandeco.java b/Essentials/src/com/earth2me/essentials/commands/Commandeco.java
index aa726eeae..e64d42946 100644
--- a/Essentials/src/com/earth2me/essentials/commands/Commandeco.java
+++ b/Essentials/src/com/earth2me/essentials/commands/Commandeco.java
@@ -55,19 +55,15 @@ public class Commandeco extends EssentialsCommand
}
else
{
- User u = ess.getUser(args[1]);
- if (u == null)
- {
- u = ess.getOfflineUser(args[1]);
- }
+ User u = getPlayer(server, args, 0, true);
switch (cmd)
{
case GIVE:
- u.giveMoney(amount);
+ u.giveMoney(amount, sender);
break;
case TAKE:
- u.takeMoney(amount);
+ u.takeMoney(amount, sender);
break;
case RESET: