diff options
Diffstat (limited to 'Essentials/src/net/ess3/commands/Commandbalance.java')
-rw-r--r-- | Essentials/src/net/ess3/commands/Commandbalance.java | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/Essentials/src/net/ess3/commands/Commandbalance.java b/Essentials/src/net/ess3/commands/Commandbalance.java index 6c7bd941a..2fb325ab9 100644 --- a/Essentials/src/net/ess3/commands/Commandbalance.java +++ b/Essentials/src/net/ess3/commands/Commandbalance.java @@ -1,10 +1,10 @@ package net.ess3.commands; import static net.ess3.I18n._; +import org.bukkit.command.CommandSender; import net.ess3.api.IUser; import net.ess3.permissions.Permissions; import net.ess3.utils.FormatUtil; -import org.bukkit.command.CommandSender; public class Commandbalance extends EssentialsCommand @@ -22,10 +22,7 @@ public class Commandbalance extends EssentialsCommand @Override public void run(final IUser user, final String commandLabel, final String[] args) throws Exception { - final double bal = (args.length < 1 - || !Permissions.BALANCE_OTHERS.isAuthorized(user) - ? user - : ess.getUserMap().matchUser(args[0], true)).getMoney(); + final double bal = (args.length < 1 || !Permissions.BALANCE_OTHERS.isAuthorized(user) ? user : ess.getUserMap().matchUser(args[0], true)).getMoney(); user.sendMessage(_("balance", FormatUtil.displayCurrency(bal, ess))); } } |