diff --git a/Plan/common/src/main/java/com/djrapitops/plan/commands/subcommands/RegistrationCommands.java b/Plan/common/src/main/java/com/djrapitops/plan/commands/subcommands/RegistrationCommands.java index fe4216b54..2aee67087 100644 --- a/Plan/common/src/main/java/com/djrapitops/plan/commands/subcommands/RegistrationCommands.java +++ b/Plan/common/src/main/java/com/djrapitops/plan/commands/subcommands/RegistrationCommands.java @@ -108,7 +108,7 @@ public class RegistrationCommands { if (user.isPresent()) { registerUser(user.get(), sender, getPermissionLevel(sender)); } else { - throw new IllegalArgumentException(locale.getString(FailReason.USER_DOES_NOT_EXIST)); + throw new IllegalArgumentException(locale.getString(FailReason.USER_INFORMATION_NOT_FOUND)); } } diff --git a/Plan/common/src/main/java/com/djrapitops/plan/delivery/webserver/auth/FailReason.java b/Plan/common/src/main/java/com/djrapitops/plan/delivery/webserver/auth/FailReason.java index 06a9f93e4..b7e77cf27 100644 --- a/Plan/common/src/main/java/com/djrapitops/plan/delivery/webserver/auth/FailReason.java +++ b/Plan/common/src/main/java/com/djrapitops/plan/delivery/webserver/auth/FailReason.java @@ -29,6 +29,7 @@ public enum FailReason implements Lang { EXPIRED_COOKIE("User cookie has expired"), USER_AND_PASS_NOT_SPECIFIED("User and Password not specified"), USER_DOES_NOT_EXIST("User does not exist"), + USER_INFORMATION_NOT_FOUND("Registration failed, try again (The code expires after 15 minutes)"), USER_PASS_MISMATCH("User and Password did not match"), DATABASE_NOT_OPEN("Database is not open, check db status with /plan info"), ERROR("Authentication failed due to error");