Exemplo n.º 1
0
  public CmdMCoreId() {
    // Aliases
    this.addAliases("id");

    // Requirements
    this.addRequirements(ReqHasPerm.get(MCorePerm.CMD_MCORE_ID.node));
  }
Exemplo n.º 2
0
  public CmdMCoreUsysUniverseDel(List<String> aliases) {
    super(aliases);
    this.addRequiredArg("universe");
    this.addRequiredArg("multiverse");

    this.addRequirements(ReqHasPerm.get(MCorePerm.CMD_MCORE_USYS_MULTIVERSE_DEL.node));
  }
  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());
  }
Exemplo n.º 4
0
  public CmdFactionsMap() {
    this.addAliases("map");

    this.addOptionalArg("on/off", "once");

    this.addRequirements(ReqFactionsEnabled.get());
    this.addRequirements(ReqHasPerm.get(Perm.MAP.node));
    this.addRequirements(ReqIsPlayer.get());
  }
  public CmdFactionsLeader() {
    this.addAliases("会长", "设置会长");

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

    this.addRequirements(ReqFactionsEnabled.get());
    this.addRequirements(ReqHasPerm.get(Perm.LEADER.node));
  }
Exemplo n.º 6
0
  public CmdFactionsInvite() {
    // Aliases
    this.addAliases("inv", "invite");

    // Args
    this.addRequiredArg("player");
    this.addOptionalArg("yes/no", "toggle");

    // Requirements
    this.addRequirements(ReqFactionsEnabled.get());
    this.addRequirements(ReqHasPerm.get(Perm.INVITE.node));
    this.addRequirements(ReqHasFaction.get());
    this.addRequirements(ReqIsPlayer.get());
  }