Showing Dropping Anvil Something (Ignore)
This commit is contained in:
@@ -11,43 +11,43 @@ import org.bukkit.command.CommandSender;
|
||||
|
||||
public class CmdMoneyBalance extends FCommand {
|
||||
|
||||
public CmdMoneyBalance() {
|
||||
super();
|
||||
this.aliases.add("b");
|
||||
this.aliases.add("balance");
|
||||
public CmdMoneyBalance() {
|
||||
super();
|
||||
this.aliases.add("b");
|
||||
this.aliases.add("balance");
|
||||
|
||||
//this.requiredArgs.add("");
|
||||
this.optionalArgs.put("faction", "yours");
|
||||
//this.requiredArgs.add("");
|
||||
this.optionalArgs.put("faction", "yours");
|
||||
|
||||
this.setHelpShort(TL.COMMAND_MONEYBALANCE_SHORT.toString());
|
||||
this.setHelpShort(TL.COMMAND_MONEYBALANCE_SHORT.toString());
|
||||
|
||||
this.requirements = new CommandRequirements.Builder(Permission.MONEY_BALANCE).build();
|
||||
}
|
||||
this.requirements = new CommandRequirements.Builder(Permission.MONEY_BALANCE).build();
|
||||
}
|
||||
|
||||
@Override
|
||||
public void perform(CommandContext context) {
|
||||
Faction faction = context.faction;
|
||||
if (context.argIsSet(0)) {
|
||||
faction = context.argAsFaction(0);
|
||||
}
|
||||
@Override
|
||||
public void perform(CommandContext context) {
|
||||
Faction faction = context.faction;
|
||||
if (context.argIsSet(0)) {
|
||||
faction = context.argAsFaction(0);
|
||||
}
|
||||
|
||||
if (faction == null) {
|
||||
return;
|
||||
}
|
||||
if (faction != context.faction && !Permission.MONEY_BALANCE_ANY.has(context.sender, true)) {
|
||||
return;
|
||||
}
|
||||
if (faction == null) {
|
||||
return;
|
||||
}
|
||||
if (faction != context.faction && !Permission.MONEY_BALANCE_ANY.has(context.sender, true)) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (context.fPlayer != null) {
|
||||
Econ.sendBalanceInfo((CommandSender) context.fPlayer, faction);
|
||||
} else {
|
||||
Econ.sendBalanceInfo(context.sender, faction);
|
||||
}
|
||||
}
|
||||
if (context.fPlayer != null) {
|
||||
Econ.sendBalanceInfo((CommandSender) context.fPlayer, faction);
|
||||
} else {
|
||||
Econ.sendBalanceInfo(context.sender, faction);
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public TL getUsageTranslation() {
|
||||
return TL.COMMAND_MONEYBALANCE_DESCRIPTION;
|
||||
}
|
||||
@Override
|
||||
public TL getUsageTranslation() {
|
||||
return TL.COMMAND_MONEYBALANCE_DESCRIPTION;
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user