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)); }
public CmdFactionsDisband() { // Aliases this.addAliases("disband"); // Args this.addOptionalArg("faction", "you"); // Requirements this.addRequirements(ReqFactionsEnabled.get()); this.addRequirements(ReqHasPerm.get(Perm.DISBAND.node)); }
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()); }
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()); }
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"); }