aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPetr Ilin <hevav@hevav.dev>2022-12-23 22:07:30 +0300
committerPetr Ilin <hevav@hevav.dev>2022-12-23 22:07:30 +0300
commit8ff7f25c006dd367e1b35e1d13e105900b7c3d60 (patch)
tree5891e6e84dfefbc433e775fad1452f083a3d317d /src
parent1632af86c1e04b433f8cc0a32f104458dfb16963 (diff)
downloadLimboAuth-8ff7f25c006dd367e1b35e1d13e105900b7c3d60.tar.gz
LimboAuth-8ff7f25c006dd367e1b35e1d13e105900b7c3d60.tar.bz2
LimboAuth-8ff7f25c006dd367e1b35e1d13e105900b7c3d60.zip
ChangePasswordCommand fix
Diffstat (limited to 'src')
-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 {