Moved a command configuration
This commit is contained in:
parent
efeef0e1e9
commit
386b80babc
@ -488,6 +488,22 @@ public class CommandManager {
|
|||||||
"E-mail command",
|
"E-mail command",
|
||||||
"The AuthMe Reloaded E-mail command. The root for all E-mail commands.", null);
|
"The AuthMe Reloaded E-mail command. The root for all E-mail commands.", null);
|
||||||
|
|
||||||
|
// Register the help command
|
||||||
|
CommandDescription emailHelpCommand = new CommandDescription(
|
||||||
|
new HelpCommand(),
|
||||||
|
new ArrayList<String>() {{
|
||||||
|
add("help");
|
||||||
|
add("hlp");
|
||||||
|
add("h");
|
||||||
|
add("sos");
|
||||||
|
add("?");
|
||||||
|
}},
|
||||||
|
"View help",
|
||||||
|
"View detailed help pages about AuthMeReloaded help commands.",
|
||||||
|
emailBaseCommand);
|
||||||
|
emailHelpCommand.addArgument(new CommandArgumentDescription("query", "The command or query to view help for.", true));
|
||||||
|
emailHelpCommand.setMaximumArguments(false);
|
||||||
|
|
||||||
// Register the add command
|
// Register the add command
|
||||||
CommandDescription addEmailCommand = new CommandDescription(
|
CommandDescription addEmailCommand = new CommandDescription(
|
||||||
new AddEmailCommand(),
|
new AddEmailCommand(),
|
||||||
@ -533,22 +549,6 @@ public class CommandManager {
|
|||||||
recoverEmailCommand.setCommandPermissions("authme.email.recover", CommandPermissions.DefaultPermission.ALLOWED);
|
recoverEmailCommand.setCommandPermissions("authme.email.recover", CommandPermissions.DefaultPermission.ALLOWED);
|
||||||
recoverEmailCommand.addArgument(new CommandArgumentDescription("email", "Email address", false));
|
recoverEmailCommand.addArgument(new CommandArgumentDescription("email", "Email address", false));
|
||||||
|
|
||||||
// Register the help command
|
|
||||||
CommandDescription emailHelpCommand = new CommandDescription(
|
|
||||||
new HelpCommand(),
|
|
||||||
new ArrayList<String>() {{
|
|
||||||
add("help");
|
|
||||||
add("hlp");
|
|
||||||
add("h");
|
|
||||||
add("sos");
|
|
||||||
add("?");
|
|
||||||
}},
|
|
||||||
"View help",
|
|
||||||
"View detailed help pages about AuthMeReloaded help commands.",
|
|
||||||
emailBaseCommand);
|
|
||||||
emailHelpCommand.addArgument(new CommandArgumentDescription("query", "The command or query to view help for.", true));
|
|
||||||
emailHelpCommand.setMaximumArguments(false);
|
|
||||||
|
|
||||||
// Register the base captcha command
|
// Register the base captcha command
|
||||||
CommandDescription captchaBaseCommand = new CommandDescription(
|
CommandDescription captchaBaseCommand = new CommandDescription(
|
||||||
new CaptchaCommand(),
|
new CaptchaCommand(),
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user