2011-10-13 14:41:07 +02:00
|
|
|
package com.massivecraft.factions.cmd;
|
|
|
|
|
2013-04-29 10:23:39 +02:00
|
|
|
import com.massivecraft.factions.Perm;
|
2013-04-16 12:04:12 +02:00
|
|
|
import com.massivecraft.factions.cmd.req.ReqBankCommandsEnabled;
|
2013-04-29 10:23:39 +02:00
|
|
|
import com.massivecraft.factions.cmd.req.ReqFactionsEnabled;
|
2013-04-16 10:11:59 +02:00
|
|
|
import com.massivecraft.mcore.cmd.HelpCommand;
|
2013-04-29 10:23:39 +02:00
|
|
|
import com.massivecraft.mcore.cmd.req.ReqHasPerm;
|
2011-10-13 14:41:07 +02:00
|
|
|
|
2013-04-10 13:12:22 +02:00
|
|
|
public class CmdFactionsMoney extends FCommand
|
2011-10-13 14:41:07 +02:00
|
|
|
{
|
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();
|
2011-10-13 14:41:07 +02:00
|
|
|
|
2013-04-10 13:12:22 +02:00
|
|
|
public CmdFactionsMoney()
|
2011-10-13 14:41:07 +02:00
|
|
|
{
|
2013-04-16 10:11:59 +02:00
|
|
|
this.addAliases("money");
|
2011-10-13 14:41:07 +02:00
|
|
|
|
2013-04-29 10:23:39 +02:00
|
|
|
this.addRequirements(ReqFactionsEnabled.get());
|
2013-04-16 12:04:12 +02:00
|
|
|
this.addRequirements(ReqBankCommandsEnabled.get());
|
2013-04-29 10:23:39 +02:00
|
|
|
this.addRequirements(ReqHasPerm.get(Perm.MONEY.node));
|
2011-10-13 14:41:07 +02:00
|
|
|
|
|
|
|
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()
|
|
|
|
{
|
2013-04-16 10:11:59 +02:00
|
|
|
this.getCommandChain().add(this);
|
|
|
|
HelpCommand.getInstance().execute(this.sender, this.args, this.commandChain);
|
2011-10-13 14:41:07 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
}
|