mirror of
https://github.com/EssentialsX/Essentials.git
synced 2024-12-23 01:27:40 +01: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
@ -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 New Issue
Block a user