コード例 #1
0
  public CmdBookDelete() {
    this.addAliases("delete");

    this.addArg(ARMBook.get(), "title", true);

    this.addRequirements(ReqHasPerm.get(Perm.DELETE.node));
  }
コード例 #2
0
  public CmdFactionsExpansions() {
    // Aliases
    this.addAliases("expansions");

    // Requirements
    this.addRequirements(ReqHasPerm.get(Perm.EXPANSIONS.node));
  }
コード例 #3
0
  public CmdFactionsSeeChunk() {
    // Aliases
    this.addAliases("sc", "seechunk");

    // Args
    this.addOptionalArg("active", "toggle");

    // Requirements
    this.addRequirements(ReqHasPerm.get(Perm.SEECHUNK.node));
    this.addRequirements(ReqIsPlayer.get());
  }
コード例 #4
0
  public CmdFactionsDisband() {
    // Aliases
    this.addAliases("disband");

    // Args
    this.addOptionalArg("faction", "you");

    // Requirements
    this.addRequirements(ReqFactionsEnabled.get());
    this.addRequirements(ReqHasPerm.get(Perm.DISBAND.node));
  }
コード例 #5
0
  public CmdBookPowertool() {
    // Aliases
    this.addAliases("pt", "powertool");

    // Args
    this.addArg(ARBoolean.get(), "true/false", "toggle");

    // Requirements
    this.addRequirements(ReqHasPerm.get(Perm.POWERTOOL.node));
    this.addRequirements(ReqIsPlayer.get());
  }
コード例 #6
0
  public CmdFactionsFlagShow() {
    // Aliases
    this.addAliases("s", "show");

    // Args
    this.addOptionalArg("faction", "you");
    this.addOptionalArg("flags", "all");
    this.setErrorOnToManyArgs(false);

    // Requirements
    this.addRequirements(ReqHasPerm.get(Perm.FLAG_SHOW.node));
  }
コード例 #7
0
  public CmdFactionsInvite() {
    // Aliases
    this.addAliases("invite");

    // Children
    this.addChild(this.cmdFactionsInviteAdd);
    this.addChild(this.cmdFactionsInviteRemove);
    this.addChild(this.cmdFactionsInviteList);

    // Requirements
    this.addRequirements(ReqHasPerm.get(Perm.INVITE.node));
  }
コード例 #8
0
  public CmdFactionsFlag() {
    // Aliases
    this.addAliases("flag");

    // Args
    this.addOptionalArg("faction", "you");
    this.addOptionalArg("flag", "all");
    this.addOptionalArg("yes/no", "read");

    // Requirements
    this.addRequirements(ReqHasPerm.get(Perm.FLAG.node));
  }
コード例 #9
0
  public CmdFactionsPermSet() {
    // Aliases
    this.addAliases("set");

    // Args
    this.addArg(ARMPerm.get(), "perm");
    this.addArg(ARRel.get(), "relation");
    this.addArg(ARBoolean.get(), "yes/no");
    this.addArg(ARFaction.get(), "faction", "you");

    // Requirements
    this.addRequirements(ReqHasPerm.get(Perm.PERM_SET.node));
  }
コード例 #10
0
  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());
  }
コード例 #11
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));
  }
コード例 #12
0
  public CmdFactionsSetFill(boolean claim) {
    // Super
    super(claim);

    // Aliases
    this.addAliases("f", "fill");

    // Format
    this.setFormatOne("<h>%s<i> %s <h>%d <i>chunk %s<i> using fill.");
    this.setFormatMany("<h>%s<i> %s <h>%d <i>chunks near %s<i> using fill.");

    // Requirements
    this.addRequirements(ReqIsPlayer.get());
    String node = claim ? Perm.CLAIM_FILL.node : Perm.UNCLAIM_FILL.node;
    this.addRequirements(ReqHasPerm.get(node));
  }