51 lines
1.6 KiB
Java
51 lines
1.6 KiB
Java
package com.massivecraft.factions.cmd;
|
|
|
|
import com.massivecraft.factions.P;
|
|
import com.massivecraft.factions.zcore.util.TL;
|
|
|
|
public class CmdMoney extends FCommand {
|
|
|
|
public CmdMoneyBalance cmdMoneyBalance = new CmdMoneyBalance();
|
|
public CmdMoneyDeposit cmdMoneyDeposit = new CmdMoneyDeposit();
|
|
public CmdMoneyWithdraw cmdMoneyWithdraw = new CmdMoneyWithdraw();
|
|
public CmdMoneyTransferFf cmdMoneyTransferFf = new CmdMoneyTransferFf();
|
|
public CmdMoneyTransferFp cmdMoneyTransferFp = new CmdMoneyTransferFp();
|
|
public CmdMoneyTransferPf cmdMoneyTransferPf = new CmdMoneyTransferPf();
|
|
|
|
public CmdMoney() {
|
|
super();
|
|
this.aliases.add("money");
|
|
|
|
//this.requiredArgs.add("");
|
|
//this.optionalArgs.put("","")
|
|
|
|
this.isMoneyCommand = true;
|
|
|
|
senderMustBePlayer = false;
|
|
senderMustBeMember = false;
|
|
senderMustBeModerator = false;
|
|
senderMustBeAdmin = false;
|
|
|
|
this.helpLong.add(p.txt.parseTags(TL.COMMAND_MONEY_LONG.toString()));
|
|
|
|
this.addSubCommand(this.cmdMoneyBalance);
|
|
this.addSubCommand(this.cmdMoneyDeposit);
|
|
this.addSubCommand(this.cmdMoneyWithdraw);
|
|
this.addSubCommand(this.cmdMoneyTransferFf);
|
|
this.addSubCommand(this.cmdMoneyTransferFp);
|
|
this.addSubCommand(this.cmdMoneyTransferPf);
|
|
}
|
|
|
|
@Override
|
|
public void perform() {
|
|
this.commandChain.add(this);
|
|
P.p.cmdAutoHelp.execute(this.sender, this.args, this.commandChain);
|
|
}
|
|
|
|
@Override
|
|
public TL getUsageTranslation() {
|
|
return TL.COMMAND_MONEY_DESCRIPTION;
|
|
}
|
|
|
|
}
|