mirror of
https://github.com/AuthMe/AuthMeReloaded.git
synced 2024-11-23 18:55:11 +01:00
Forced the password parameter for login command
This commit is contained in:
parent
bade9d5d5e
commit
7700799e82
@ -337,7 +337,7 @@ public class CommandManager {
|
||||
"Login command",
|
||||
"Command to login using AuthMeReloaded.", null);
|
||||
loginBaseCommand.setCommandPermissions("authme.login", CommandPermissions.DefaultPermission.ALLOWED);
|
||||
loginBaseCommand.addArgument(new CommandArgumentDescription("password", "Login password", true));
|
||||
loginBaseCommand.addArgument(new CommandArgumentDescription("password", "Login password", false));
|
||||
|
||||
// Add the base commands to the commands array
|
||||
this.commandDescriptions.add(authMeBaseCommand);
|
||||
|
@ -34,12 +34,6 @@ public class LoginCommand extends ExecutableCommand {
|
||||
// Get the player instance
|
||||
final Player player = (Player) sender;
|
||||
|
||||
// Make sure the password is set
|
||||
if(commandArguments.getCount() == 0) {
|
||||
m.send(player, "usage_log");
|
||||
return true;
|
||||
}
|
||||
|
||||
// Get the password
|
||||
String playerPass = commandArguments.get(0);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user