mirror of
https://github.com/AuthMe/AuthMeReloaded.git
synced 2024-12-17 22:28:13 +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",
|
"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);
|
||||||
|
@ -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);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user