From 8ff7f25c006dd367e1b35e1d13e105900b7c3d60 Mon Sep 17 00:00:00 2001 From: Petr Ilin Date: Fri, 23 Dec 2022 22:07:30 +0300 Subject: ChangePasswordCommand fix --- src/main/java/net/elytrium/limboauth/command/ChangePasswordCommand.java | 2 ++ 1 file changed, 2 insertions(+) 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 { -- cgit