コード例 #1
0
  public CmdFactionsLeave() {
    // Aliases
    this.addAliases("leave");

    // Requirements
    this.addRequirements(RequirementHasPerm.get(Perm.LEAVE.node));
    this.addRequirements(ReqHasFaction.get());
  }
コード例 #2
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());
  }
コード例 #3
0
ファイル: CmdWarp.java プロジェクト: roastnewt/FactionsPlus
	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");

	}