From 62c053d5cb5b0097922c4d7d0447b25ed1bbba6f Mon Sep 17 00:00:00 2001 From: EbonJaguar Date: Mon, 6 Mar 2017 15:21:49 -0500 Subject: [PATCH] Register the new /email code command --- .../fr/xephi/authme/command/CommandInitializer.java | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/src/main/java/fr/xephi/authme/command/CommandInitializer.java b/src/main/java/fr/xephi/authme/command/CommandInitializer.java index 98030c96..6758c008 100644 --- a/src/main/java/fr/xephi/authme/command/CommandInitializer.java +++ b/src/main/java/fr/xephi/authme/command/CommandInitializer.java @@ -30,6 +30,7 @@ import fr.xephi.authme.command.executable.changepassword.ChangePasswordCommand; import fr.xephi.authme.command.executable.email.AddEmailCommand; import fr.xephi.authme.command.executable.email.ChangeEmailCommand; import fr.xephi.authme.command.executable.email.EmailBaseCommand; +import fr.xephi.authme.command.executable.email.ProcessCodeCommand; import fr.xephi.authme.command.executable.email.RecoverEmailCommand; import fr.xephi.authme.command.executable.email.ShowEmailCommand; import fr.xephi.authme.command.executable.login.LoginCommand; @@ -419,11 +420,21 @@ public class CommandInitializer { .detailedDescription("Recover your account using an Email address by sending a mail containing " + "a new password.") .withArgument("email", "Email address", false) - .withArgument("code", "Recovery code", true) .permission(PlayerPermission.RECOVER_EMAIL) .executableCommand(RecoverEmailCommand.class) .register(); + // Register the process recovery code command + CommandDescription.builder() + .parent(EMAIL_BASE) + .labels("code") + .description("Submit code to recover password") + .detailedDescription("Recover your account by submitting an emailed code to your email.") + .withArgument("code", "Recovery code", false) + .permission(PlayerPermission.RECOVER_EMAIL) + .executableCommand(ProcessCodeCommand.class) + .register(); + // Register the base captcha command CommandDescription CAPTCHA_BASE = CommandDescription.builder() .parent(null)