mirror of
https://github.com/AuthMe/AuthMeReloaded.git
synced 2024-10-31 07:39:42 +01:00
Fixed invalid command references
This commit is contained in:
parent
40fc2c893d
commit
39c35fd342
@ -2,8 +2,11 @@ package fr.xephi.authme.command;
|
||||
|
||||
import fr.xephi.authme.command.executable.*;
|
||||
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.changepassword.ChangePasswordCommand;
|
||||
import fr.xephi.authme.command.executable.changepassword.*;
|
||||
import fr.xephi.authme.command.executable.converter.ConverterCommand;
|
||||
import fr.xephi.authme.command.executable.email.AddEmailCommand;
|
||||
import fr.xephi.authme.command.executable.email.ChangeEmailCommand;
|
||||
@ -105,7 +108,7 @@ public class CommandManager {
|
||||
|
||||
// Register the changepassword command
|
||||
CommandDescription changePasswordCommand = new CommandDescription(
|
||||
new RegisterCommand(),
|
||||
new ChangePasswordCommand(),
|
||||
new ArrayList<String>() {{
|
||||
add("password");
|
||||
add("changepassword");
|
||||
@ -390,7 +393,7 @@ public class CommandManager {
|
||||
|
||||
// Register the base register command
|
||||
CommandDescription registerBaseCommand = new CommandDescription(
|
||||
new RegisterCommand(),
|
||||
new fr.xephi.authme.command.executable.register.RegisterCommand(),
|
||||
new ArrayList<String>() {{
|
||||
add("register");
|
||||
add("reg");
|
||||
@ -420,7 +423,7 @@ public class CommandManager {
|
||||
|
||||
// Register the base unregister command
|
||||
CommandDescription unregisterBaseCommand = new CommandDescription(
|
||||
new UnregisterCommand(),
|
||||
new fr.xephi.authme.command.executable.unregister.UnregisterCommand(),
|
||||
new ArrayList<String>() {{
|
||||
add("unregister");
|
||||
add("unreg");
|
||||
@ -429,7 +432,6 @@ public class CommandManager {
|
||||
"Command to unregister using AuthMeReloaded.", null);
|
||||
unregisterBaseCommand.setCommandPermissions("authme.unregister", CommandPermissions.DefaultPermission.ALLOWED);
|
||||
unregisterBaseCommand.addArgument(new CommandArgumentDescription("password", "Password", false));
|
||||
unregisterBaseCommand.setMaximumArguments(false);
|
||||
|
||||
// Register the help command
|
||||
CommandDescription unregisterHelpCommand = new CommandDescription(
|
||||
@ -449,7 +451,7 @@ public class CommandManager {
|
||||
|
||||
// Register the base changepassword command
|
||||
CommandDescription changePasswordBaseCommand = new CommandDescription(
|
||||
new ChangePasswordCommand(),
|
||||
new fr.xephi.authme.command.executable.changepassword.ChangePasswordCommand(),
|
||||
new ArrayList<String>() {{
|
||||
add("changepassword");
|
||||
add("changepass");
|
||||
@ -581,8 +583,8 @@ public class CommandManager {
|
||||
CommandDescription converterBaseCommand = new CommandDescription(
|
||||
new ConverterCommand(),
|
||||
new ArrayList<String>() {{
|
||||
add("convert");
|
||||
add("converter");
|
||||
add("convert");
|
||||
add("conv");
|
||||
}},
|
||||
"Convert command",
|
||||
|
Loading…
Reference in New Issue
Block a user