public CmdFactionsMoneyWithdraw() {
    this.addAliases("w", "withdraw");

    this.addRequiredArg("amount");
    this.addOptionalArg("faction", "you");

    this.addRequirements(ReqHasPerm.get(Perm.MONEY_WITHDRAW.node));
    this.addRequirements(ReqBankCommandsEnabled.get());
  }
  public CmdFactionsMoneyTransferPf() {
    // Aliases
    this.addAliases("pf");

    // Args
    this.addRequiredArg("amount");
    this.addRequiredArg("player");
    this.addRequiredArg("faction");

    // Requirements
    this.addRequirements(ReqFactionsEnabled.get());
    this.addRequirements(ReqHasPerm.get(Perm.MONEY_P2F.node));
    this.addRequirements(ReqBankCommandsEnabled.get());
  }
Ejemplo n.º 3
0
  public CmdFactionsMoney() {
    // Children
    this.addChild(this.cmdMoneyBalance);
    this.addChild(this.cmdMoneyDeposit);
    this.addChild(this.cmdMoneyWithdraw);
    this.addChild(this.cmdMoneyTransferFf);
    this.addChild(this.cmdMoneyTransferFp);
    this.addChild(this.cmdMoneyTransferPf);

    // Aliases
    this.addAliases("money");

    // Requirements
    this.addRequirements(ReqBankCommandsEnabled.get());
    this.addRequirements(ReqHasPerm.get(Perm.MONEY.node));
  }