Skip to content

Commit

Permalink
ergjbweguewfij
Browse files Browse the repository at this point in the history
  • Loading branch information
jasonlaubb committed Aug 10, 2024
1 parent b711237 commit 344b424
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ registerCommand({
const correctPassword = config.commands.passwordSetting.usingHash ? SHA256(config.commands.passwordSetting.hash).toString() : config.commands.passwordSetting.password;
if (oldPassword != correctPassword) return sendRawText(player, { text: "§bMatrix §7>§c " }, { translate: "passwords.wrong", with: [] });
sendRawText(world, { text: "§bMatrix §7>§g " }, { translate: "passwords.changed", with: [] });

if ((!args[2] || args[2] == "true") || (config.commands.passwordSetting.usingHash && args[2] == "false")) {
Dynamic.set(["commands", "passwordSetting", "hash"], SHA256(newPassword).toString());
Dynamic.set(["commands", "passwordSetting", "usingHash"], true);
Expand Down
1 change: 1 addition & 0 deletions ac_BP/src/Functions/chatModel/Commands/settings/reset.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ registerCommand({
world.setDynamicProperty("config");
initialize();
if (c().configDataBase.autoCommit) {
// Commit the reset changes
commitChanges();
}
player.sendMessage(new rawstr().str("§bMatrix §7>§g ").tra("reset.sucess").parse());
Expand Down

0 comments on commit 344b424

Please sign in to comment.