mirror of
https://github.com/TotalFreedomMC/TF-EssentialsX.git
synced 2025-02-11 11:49:12 +00:00
Permission essentials.balance.other is now essentials.balance.others
git-svn-id: https://svn.java.net/svn/essentials~svn/trunk@1413 e251c2fe-e539-e718-e476-b85c1f46cddb
This commit is contained in:
parent
bcd4ed0fdb
commit
0db4afa5f1
1 changed files with 7 additions and 7 deletions
|
@ -3,13 +3,11 @@ package com.earth2me.essentials.commands;
|
|||
import org.bukkit.Server;
|
||||
import com.earth2me.essentials.User;
|
||||
import com.earth2me.essentials.Util;
|
||||
import java.text.DecimalFormat;
|
||||
import org.bukkit.command.CommandSender;
|
||||
|
||||
|
||||
public class Commandbalance extends EssentialsCommand
|
||||
{
|
||||
private static DecimalFormat df = new DecimalFormat("0.##");
|
||||
public Commandbalance()
|
||||
{
|
||||
super("balance");
|
||||
|
@ -29,7 +27,9 @@ public class Commandbalance extends EssentialsCommand
|
|||
public void run(Server server, User user, String commandLabel, String[] args) throws Exception
|
||||
{
|
||||
charge(user);
|
||||
double bal = (args.length < 1 || !user.isAuthorized("essentials.balance.other")
|
||||
double bal = (args.length < 1
|
||||
|| !user.isAuthorized("essentials.balance.others")
|
||||
|| !user.isAuthorized("essentials.balance.other")
|
||||
? user
|
||||
: getPlayer(server, args, 0)).getMoney();
|
||||
user.sendMessage(Util.format("balance", Util.formatCurrency(bal)));
|
||||
|
|
Loading…
Reference in a new issue