aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/main/java/net/elytrium/limboauth/command/ChangePasswordCommand.java2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/main/java/net/elytrium/limboauth/command/ChangePasswordCommand.java b/src/main/java/net/elytrium/limboauth/command/ChangePasswordCommand.java
index 4201394..5506c40 100644
--- a/src/main/java/net/elytrium/limboauth/command/ChangePasswordCommand.java
+++ b/src/main/java/net/elytrium/limboauth/command/ChangePasswordCommand.java
@@ -75,6 +75,7 @@ public class ChangePasswordCommand implements SimpleCommand {
if (!onlineMode) {
if (args.length < 2) {
source.sendMessage(this.usage);
+ return;
}
if (!AuthSessionHandler.checkPassword(args[0], player, this.playerDao)) {
@@ -84,6 +85,7 @@ public class ChangePasswordCommand implements SimpleCommand {
}
} else if (args.length < 1) {
source.sendMessage(this.usage);
+ return;
}
try {