Forced the password parameter for login command

This commit is contained in:
Tim Visée 2015-11-01 19:19:50 +01:00
parent bade9d5d5e
commit 7700799e82
2 changed files with 1 additions and 7 deletions

View File

@ -337,7 +337,7 @@ public class CommandManager {
"Login command", "Login command",
"Command to login using AuthMeReloaded.", null); "Command to login using AuthMeReloaded.", null);
loginBaseCommand.setCommandPermissions("authme.login", CommandPermissions.DefaultPermission.ALLOWED); 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 // Add the base commands to the commands array
this.commandDescriptions.add(authMeBaseCommand); this.commandDescriptions.add(authMeBaseCommand);

View File

@ -34,12 +34,6 @@ public class LoginCommand extends ExecutableCommand {
// Get the player instance // Get the player instance
final Player player = (Player) sender; 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 // Get the password
String playerPass = commandArguments.get(0); String playerPass = commandArguments.get(0);