From 7123a22cdbb2050103e69b04ae157c61f1ad6e9d Mon Sep 17 00:00:00 2001 From: AethLi Date: Tue, 2 Feb 2021 21:31:03 +0800 Subject: [PATCH] 0.3.1-pre-release --- build.gradle | 2 +- .../command/account/ChangePasswordCommand.java | 5 +++-- update.json | 16 ++++++++-------- 3 files changed, 12 insertions(+), 11 deletions(-) diff --git a/build.gradle b/build.gradle index 5debdd3..e17d014 100644 --- a/build.gradle +++ b/build.gradle @@ -13,7 +13,7 @@ apply plugin: 'net.minecraftforge.gradle' apply plugin: 'eclipse' apply plugin: 'maven-publish' -version = '0.3.0' +version = '0.3.1' group = 'cn.aethli.mineauth' // http://maven.apache.org/guides/mini/guide-naming-conventions.html archivesBaseName = 'mineauth' diff --git a/src/main/java/cn/aethli/mineauth/command/account/ChangePasswordCommand.java b/src/main/java/cn/aethli/mineauth/command/account/ChangePasswordCommand.java index 3da8b03..64c71d4 100644 --- a/src/main/java/cn/aethli/mineauth/command/account/ChangePasswordCommand.java +++ b/src/main/java/cn/aethli/mineauth/command/account/ChangePasswordCommand.java @@ -16,8 +16,8 @@ import static cn.aethli.mineauth.common.utils.MessageUtils.msgToOnePlayerByI18n; public class ChangePasswordCommand extends BaseCommand { - private static final List PARAMETERS = new ArrayList<>(); public static final String COMMAND = "changePassword"; + private static final List PARAMETERS = new ArrayList<>(); static { PARAMETERS.add("oldPassword"); @@ -47,12 +47,13 @@ public int run(CommandContext context) throws CommandSyntaxExcept authPlayer.setPassword(digestedPassword); authPlayer = DataUtils.selectOne(authPlayer); if (authPlayer == null) { - msgToOnePlayerByI18n(player,"change_password_wrong_password"); + msgToOnePlayerByI18n(player, "change_password_wrong_password"); return 0; } digestedPassword = DigestUtils.md5Hex(newPassword); authPlayer.setPassword(digestedPassword); DataUtils.updateById(authPlayer); + msgToOnePlayerByI18n(player, "change_password_success"); return 1; } } diff --git a/update.json b/update.json index 81196f3..bd137f7 100644 --- a/update.json +++ b/update.json @@ -1,13 +1,13 @@ { "homepage": "https://github.com/Aethli/mineauth/releases", "promos": { - "1.16.1-latest": "0.2.0", - "1.16.1-recommended": "0.2.0", - "1.16.2-latest": "0.2.0", - "1.16.2-recommended": "0.2.0", - "1.16.3-latest": "0.2.0", - "1.16.3-recommended": "0.2.0", - "1.16.4-latest": "0.2.0", - "1.16.4-recommended": "0.2.0" + "1.16.1-latest": "0.3.1", + "1.16.1-recommended": "0.3.1", + "1.16.2-latest": "0.3.1", + "1.16.2-recommended": "0.3.1", + "1.16.3-latest": "0.3.1", + "1.16.3-recommended": "0.3.1", + "1.16.4-latest": "0.3.1", + "1.16.4-recommended": "0.3.1" } } \ No newline at end of file