2011-10-13 14:41:07 +02:00
|
|
|
package com.massivecraft.factions.cmd;
|
|
|
|
|
|
|
|
import com.massivecraft.factions.P;
|
2014-12-08 00:12:52 +01:00
|
|
|
import com.massivecraft.factions.zcore.util.TL;
|
2011-10-13 14:41:07 +02:00
|
|
|
|
2014-04-04 20:55:21 +02:00
|
|
|
public class CmdMoney extends FCommand {
|
2014-08-05 17:17:27 +02:00
|
|
|
|
2014-04-04 20:55:21 +02:00
|
|
|
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() {
|
2014-07-01 22:10:18 +02:00
|
|
|
super();
|
|
|
|
this.aliases.add("money");
|
2014-04-04 20:55:21 +02:00
|
|
|
|
|
|
|
//this.requiredArgs.add("");
|
|
|
|
//this.optionalArgs.put("","")
|
|
|
|
|
|
|
|
this.isMoneyCommand = true;
|
|
|
|
|
2014-07-01 22:10:18 +02:00
|
|
|
senderMustBePlayer = false;
|
|
|
|
senderMustBeMember = false;
|
|
|
|
senderMustBeModerator = false;
|
2014-04-04 20:55:21 +02:00
|
|
|
senderMustBeAdmin = false;
|
|
|
|
|
2014-12-08 00:12:52 +01:00
|
|
|
this.helpLong.add(p.txt.parseTags(TL.COMMAND_MONEY_LONG.toString()));
|
2014-04-04 20:55:21 +02:00
|
|
|
|
2014-07-01 22:10:18 +02:00
|
|
|
this.addSubCommand(this.cmdMoneyBalance);
|
|
|
|
this.addSubCommand(this.cmdMoneyDeposit);
|
|
|
|
this.addSubCommand(this.cmdMoneyWithdraw);
|
|
|
|
this.addSubCommand(this.cmdMoneyTransferFf);
|
|
|
|
this.addSubCommand(this.cmdMoneyTransferFp);
|
|
|
|
this.addSubCommand(this.cmdMoneyTransferPf);
|
2014-04-04 20:55:21 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public void perform() {
|
2014-07-01 22:10:18 +02:00
|
|
|
this.commandChain.add(this);
|
|
|
|
P.p.cmdAutoHelp.execute(this.sender, this.args, this.commandChain);
|
2014-04-04 20:55:21 +02:00
|
|
|
}
|
|
|
|
|
2015-01-22 00:58:33 +01:00
|
|
|
@Override
|
|
|
|
public TL getUsageTranslation() {
|
|
|
|
return TL.COMMAND_MONEY_DESCRIPTION;
|
|
|
|
}
|
|
|
|
|
2011-10-13 14:41:07 +02:00
|
|
|
}
|