Factions/src/com/massivecraft/factions/cmd/CmdFactionsMoney.java

49 lines
1.5 KiB
Java
Raw Normal View History

package com.massivecraft.factions.cmd;
2013-04-09 13:00:09 +02:00
import com.massivecraft.factions.Factions;
2013-04-10 10:32:04 +02:00
import com.massivecraft.mcore.util.Txt;
2013-04-10 13:12:22 +02:00
public class CmdFactionsMoney extends FCommand
{
2013-04-10 13:12:22 +02:00
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();
2013-04-10 13:12:22 +02:00
public CmdFactionsMoney()
{
super();
this.aliases.add("money");
//this.requiredArgs.add("");
//this.optionalArgs.put("","")
this.isMoneyCommand = true;
senderMustBePlayer = false;
senderMustBeMember = false;
2011-10-23 17:55:53 +02:00
senderMustBeOfficer = false;
senderMustBeLeader = false;
this.setHelpShort("faction money commands");
2013-04-10 10:32:04 +02:00
this.helpLong.add(Txt.parse("<i>The faction money commands."));
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);
Factions.get().cmdAutoHelp.execute(this.sender, this.args, this.commandChain);
}
}