40 lines
1.3 KiB
Java
40 lines
1.3 KiB
Java
package com.massivecraft.factions.cmd;
|
|
|
|
import com.massivecraft.factions.cmd.req.ReqBankCommandsEnabled;
|
|
import com.massivecraft.mcore.cmd.HelpCommand;
|
|
|
|
public class CmdFactionsMoney extends FCommand
|
|
{
|
|
public CmdFactionsMoneyBalance cmdMoneyBalance = new CmdFactionsMoneyBalance();
|
|
public CmdFactionsMoneyDeposit cmdMoneyDeposit = new CmdFactionsMoneyDeposit();
|
|
public CmdFactionsMoneyWithdraw cmdMoneyWithdraw = new CmdFactionsMoneyWithdraw();
|
|
public CmdFactionsMoneyTransferFf cmdMoneyTransferFf = new CmdFactionsMoneyTransferFf();
|
|
public CmdFactionsMoneyTransferFp cmdMoneyTransferFp = new CmdFactionsMoneyTransferFp();
|
|
public CmdFactionsMoneyTransferPf cmdMoneyTransferPf = new CmdFactionsMoneyTransferPf();
|
|
|
|
public CmdFactionsMoney()
|
|
{
|
|
this.addAliases("money");
|
|
|
|
this.setDesc("faction money commands");
|
|
this.setHelp("The faction money commands.");
|
|
|
|
this.addRequirements(ReqBankCommandsEnabled.get());
|
|
|
|
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.getCommandChain().add(this);
|
|
HelpCommand.getInstance().execute(this.sender, this.args, this.commandChain);
|
|
}
|
|
|
|
}
|