2011-10-13 14:41:07 +02:00
|
|
|
package com.massivecraft.factions.cmd;
|
|
|
|
|
2013-04-09 13:00:09 +02:00
|
|
|
import com.massivecraft.factions.Factions;
|
2011-10-13 14:41:07 +02:00
|
|
|
|
|
|
|
public class CmdMoney extends FCommand
|
|
|
|
{
|
|
|
|
public CmdMoneyBalance cmdMoneyBalance = new CmdMoneyBalance();
|
|
|
|
public CmdMoneyDeposit cmdMoneyDeposit = new CmdMoneyDeposit();
|
|
|
|
public CmdMoneyWithdraw cmdMoneyWithdraw = new CmdMoneyWithdraw();
|
2011-10-13 16:07:07 +02:00
|
|
|
public CmdMoneyTransferFf cmdMoneyTransferFf = new CmdMoneyTransferFf();
|
|
|
|
public CmdMoneyTransferFp cmdMoneyTransferFp = new CmdMoneyTransferFp();
|
|
|
|
public CmdMoneyTransferPf cmdMoneyTransferPf = new CmdMoneyTransferPf();
|
2011-10-13 14:41:07 +02:00
|
|
|
|
|
|
|
public CmdMoney()
|
|
|
|
{
|
|
|
|
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;
|
2011-10-13 14:41:07 +02:00
|
|
|
|
|
|
|
this.setHelpShort("faction money commands");
|
|
|
|
this.helpLong.add(p.txt.parseTags("<i>The faction money commands."));
|
|
|
|
|
|
|
|
this.addSubCommand(this.cmdMoneyBalance);
|
|
|
|
this.addSubCommand(this.cmdMoneyDeposit);
|
|
|
|
this.addSubCommand(this.cmdMoneyWithdraw);
|
2011-10-13 16:07:07 +02:00
|
|
|
this.addSubCommand(this.cmdMoneyTransferFf);
|
|
|
|
this.addSubCommand(this.cmdMoneyTransferFp);
|
|
|
|
this.addSubCommand(this.cmdMoneyTransferPf);
|
2011-10-13 14:41:07 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public void perform()
|
|
|
|
{
|
|
|
|
this.commandChain.add(this);
|
2013-04-09 13:12:13 +02:00
|
|
|
Factions.get().cmdAutoHelp.execute(this.sender, this.args, this.commandChain);
|
2011-10-13 14:41:07 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
}
|