Skip to content

Commit

Permalink
0.3.1-pre-release
Browse files Browse the repository at this point in the history
  • Loading branch information
selcarpa committed Feb 2, 2021
1 parent 9372ffc commit 7123a22
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 11 deletions.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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'

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@
import static cn.aethli.mineauth.common.utils.MessageUtils.msgToOnePlayerByI18n;

public class ChangePasswordCommand extends BaseCommand {
private static final List<String> PARAMETERS = new ArrayList<>();
public static final String COMMAND = "changePassword";
private static final List<String> PARAMETERS = new ArrayList<>();

static {
PARAMETERS.add("oldPassword");
Expand Down Expand Up @@ -47,12 +47,13 @@ public int run(CommandContext<CommandSource> 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;
}
}
Expand Down
16 changes: 8 additions & 8 deletions update.json
Original file line number Diff line number Diff line change
@@ -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"
}
}

0 comments on commit 7123a22

Please sign in to comment.