예제 #1
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));
  }
예제 #3
0
  public CmdFactionsDisband() {
    // Aliases
    this.addAliases("disband");

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

    // Requirements
    this.addRequirements(ReqFactionsEnabled.get());
    this.addRequirements(ReqHasPerm.get(Perm.DISBAND.node));
  }
예제 #4
0
  public CmdClearLocks() {
    this.aliases.add("clearlocks");

    this.fpidentifier = "clearlocks";

    this.errorOnToManyArgs = true;

    this.addRequirements(ReqFactionsEnabled.get());
    this.addRequirements(ReqIsPlayer.get());

    this.setHelp("clears LWC and Lockette locks not owned by a Faction member in your land");
    this.setDesc("clears LWC and Lockette locks not owned by a Faction member in your land");
  }
  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());
  }
예제 #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());
  }
예제 #7
0
	public CmdWarp() {
		this.aliases.add("warp");

		this.requiredArgs.add("name");
		this.optionalArgs.put("password", "string");
		this.optionalArgs.put("faction", "string");
		this.errorOnToManyArgs = false;

		this.addRequirements( ReqFactionsEnabled.get() );
		this.addRequirements( ReqIsPlayer.get() );
		this.addRequirements( ReqHasFaction.get() );
		
		this.setHelp("warps to a specific warp");
		this.setDesc("warps to a specific warp");

	}