public CmdBookDelete() { this.addAliases("delete"); this.addArg(ARMBook.get(), "title", true); this.addRequirements(ReqHasPerm.get(Perm.DELETE.node)); }
public CmdFactionsExpansions() { // Aliases this.addAliases("expansions"); // Requirements this.addRequirements(ReqHasPerm.get(Perm.EXPANSIONS.node)); }
public CmdFactionsSeeChunk() { // Aliases this.addAliases("sc", "seechunk"); // Args this.addOptionalArg("active", "toggle"); // Requirements this.addRequirements(ReqHasPerm.get(Perm.SEECHUNK.node)); this.addRequirements(ReqIsPlayer.get()); }
public CmdFactionsDisband() { // Aliases this.addAliases("disband"); // Args this.addOptionalArg("faction", "you"); // Requirements this.addRequirements(ReqFactionsEnabled.get()); this.addRequirements(ReqHasPerm.get(Perm.DISBAND.node)); }
public CmdBookPowertool() { // Aliases this.addAliases("pt", "powertool"); // Args this.addArg(ARBoolean.get(), "true/false", "toggle"); // Requirements this.addRequirements(ReqHasPerm.get(Perm.POWERTOOL.node)); this.addRequirements(ReqIsPlayer.get()); }
public CmdFactionsFlagShow() { // Aliases this.addAliases("s", "show"); // Args this.addOptionalArg("faction", "you"); this.addOptionalArg("flags", "all"); this.setErrorOnToManyArgs(false); // Requirements this.addRequirements(ReqHasPerm.get(Perm.FLAG_SHOW.node)); }
public CmdFactionsInvite() { // Aliases this.addAliases("invite"); // Children this.addChild(this.cmdFactionsInviteAdd); this.addChild(this.cmdFactionsInviteRemove); this.addChild(this.cmdFactionsInviteList); // Requirements this.addRequirements(ReqHasPerm.get(Perm.INVITE.node)); }
public CmdFactionsFlag() { // Aliases this.addAliases("flag"); // Args this.addOptionalArg("faction", "you"); this.addOptionalArg("flag", "all"); this.addOptionalArg("yes/no", "read"); // Requirements this.addRequirements(ReqHasPerm.get(Perm.FLAG.node)); }
public CmdFactionsPermSet() { // Aliases this.addAliases("set"); // Args this.addArg(ARMPerm.get(), "perm"); this.addArg(ARRel.get(), "relation"); this.addArg(ARBoolean.get(), "yes/no"); this.addArg(ARFaction.get(), "faction", "you"); // Requirements this.addRequirements(ReqHasPerm.get(Perm.PERM_SET.node)); }
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 CmdFactionsMoney() { // Children this.addChild(this.cmdMoneyBalance); this.addChild(this.cmdMoneyDeposit); this.addChild(this.cmdMoneyWithdraw); this.addChild(this.cmdMoneyTransferFf); this.addChild(this.cmdMoneyTransferFp); this.addChild(this.cmdMoneyTransferPf); // Aliases this.addAliases("money"); // Requirements this.addRequirements(ReqBankCommandsEnabled.get()); this.addRequirements(ReqHasPerm.get(Perm.MONEY.node)); }
public CmdFactionsSetFill(boolean claim) { // Super super(claim); // Aliases this.addAliases("f", "fill"); // Format this.setFormatOne("<h>%s<i> %s <h>%d <i>chunk %s<i> using fill."); this.setFormatMany("<h>%s<i> %s <h>%d <i>chunks near %s<i> using fill."); // Requirements this.addRequirements(ReqIsPlayer.get()); String node = claim ? Perm.CLAIM_FILL.node : Perm.UNCLAIM_FILL.node; this.addRequirements(ReqHasPerm.get(node)); }