diff --git a/Plan/common/src/main/java/com/djrapitops/plan/command/commands/RegisterCommand.java b/Plan/common/src/main/java/com/djrapitops/plan/command/commands/RegisterCommand.java index 705b5b046..2af57ff81 100644 --- a/Plan/common/src/main/java/com/djrapitops/plan/command/commands/RegisterCommand.java +++ b/Plan/common/src/main/java/com/djrapitops/plan/command/commands/RegisterCommand.java @@ -97,6 +97,8 @@ public class RegisterCommand extends CommandNode { sender.sendMessage("§cPassword hash error."); } catch (NumberFormatException e) { throw new NumberFormatException(args[2]); + } catch (IllegalArgumentException e) { + throw e; } catch (Exception e) { errorHandler.log(L.WARN, this.getClass(), e); } @@ -152,7 +154,7 @@ public class RegisterCommand extends CommandNode { return; } database.save().webUser(webUser); - sender.sendMessage(locale.getString(CommandLang.WEB_USER_REGISTER_SUCCESS)); + sender.sendMessage(locale.getString(CommandLang.WEB_USER_REGISTER_SUCCESS, userName)); logger.info(locale.getString(CommandLang.WEB_USER_REGISTER_NOTIFY, userName, webUser.getPermLevel())); } catch (Exception e) { errorHandler.log(L.WARN, this.getClass(), e);