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

    // Requirements
    this.addRequirements(RequirementHasPerm.get(Perm.LEAVE.node));
    this.addRequirements(ReqHasFaction.get());
  }
Exemplo n.º 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());
  }
Exemplo n.º 3
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");

	}