Fixed invalid command references

This commit is contained in:
Tim Visée 2015-11-01 22:06:50 +01:00
parent 40fc2c893d
commit 39c35fd342

View File

@ -2,8 +2,11 @@ package fr.xephi.authme.command;
import fr.xephi.authme.command.executable.*; import fr.xephi.authme.command.executable.*;
import fr.xephi.authme.command.executable.authme.*; import fr.xephi.authme.command.executable.authme.*;
import fr.xephi.authme.command.executable.authme.ChangePasswordCommand;
import fr.xephi.authme.command.executable.authme.RegisterCommand;
import fr.xephi.authme.command.executable.authme.UnregisterCommand;
import fr.xephi.authme.command.executable.captcha.CaptchaCommand; import fr.xephi.authme.command.executable.captcha.CaptchaCommand;
import fr.xephi.authme.command.executable.changepassword.ChangePasswordCommand; import fr.xephi.authme.command.executable.changepassword.*;
import fr.xephi.authme.command.executable.converter.ConverterCommand; import fr.xephi.authme.command.executable.converter.ConverterCommand;
import fr.xephi.authme.command.executable.email.AddEmailCommand; import fr.xephi.authme.command.executable.email.AddEmailCommand;
import fr.xephi.authme.command.executable.email.ChangeEmailCommand; import fr.xephi.authme.command.executable.email.ChangeEmailCommand;
@ -105,7 +108,7 @@ public class CommandManager {
// Register the changepassword command // Register the changepassword command
CommandDescription changePasswordCommand = new CommandDescription( CommandDescription changePasswordCommand = new CommandDescription(
new RegisterCommand(), new ChangePasswordCommand(),
new ArrayList<String>() {{ new ArrayList<String>() {{
add("password"); add("password");
add("changepassword"); add("changepassword");
@ -390,7 +393,7 @@ public class CommandManager {
// Register the base register command // Register the base register command
CommandDescription registerBaseCommand = new CommandDescription( CommandDescription registerBaseCommand = new CommandDescription(
new RegisterCommand(), new fr.xephi.authme.command.executable.register.RegisterCommand(),
new ArrayList<String>() {{ new ArrayList<String>() {{
add("register"); add("register");
add("reg"); add("reg");
@ -420,7 +423,7 @@ public class CommandManager {
// Register the base unregister command // Register the base unregister command
CommandDescription unregisterBaseCommand = new CommandDescription( CommandDescription unregisterBaseCommand = new CommandDescription(
new UnregisterCommand(), new fr.xephi.authme.command.executable.unregister.UnregisterCommand(),
new ArrayList<String>() {{ new ArrayList<String>() {{
add("unregister"); add("unregister");
add("unreg"); add("unreg");
@ -429,7 +432,6 @@ public class CommandManager {
"Command to unregister using AuthMeReloaded.", null); "Command to unregister using AuthMeReloaded.", null);
unregisterBaseCommand.setCommandPermissions("authme.unregister", CommandPermissions.DefaultPermission.ALLOWED); unregisterBaseCommand.setCommandPermissions("authme.unregister", CommandPermissions.DefaultPermission.ALLOWED);
unregisterBaseCommand.addArgument(new CommandArgumentDescription("password", "Password", false)); unregisterBaseCommand.addArgument(new CommandArgumentDescription("password", "Password", false));
unregisterBaseCommand.setMaximumArguments(false);
// Register the help command // Register the help command
CommandDescription unregisterHelpCommand = new CommandDescription( CommandDescription unregisterHelpCommand = new CommandDescription(
@ -449,7 +451,7 @@ public class CommandManager {
// Register the base changepassword command // Register the base changepassword command
CommandDescription changePasswordBaseCommand = new CommandDescription( CommandDescription changePasswordBaseCommand = new CommandDescription(
new ChangePasswordCommand(), new fr.xephi.authme.command.executable.changepassword.ChangePasswordCommand(),
new ArrayList<String>() {{ new ArrayList<String>() {{
add("changepassword"); add("changepassword");
add("changepass"); add("changepass");
@ -581,8 +583,8 @@ public class CommandManager {
CommandDescription converterBaseCommand = new CommandDescription( CommandDescription converterBaseCommand = new CommandDescription(
new ConverterCommand(), new ConverterCommand(),
new ArrayList<String>() {{ new ArrayList<String>() {{
add("convert");
add("converter"); add("converter");
add("convert");
add("conv"); add("conv");
}}, }},
"Convert command", "Convert command",