private void save() throws Exception {
        try (BufferedWriter writer = Files.newBufferedWriter(this.consoleKeysPath, StandardCharsets.UTF_8)) {
            KeystoreFile file = new KeystoreFile();
            file.consoleKeys = new ArrayList<>(this.trustedConsoleKeys);
            GsonProvider.prettyPrinting().toJson(file, writer);
        }
    }
Trusts the given public key hash for the sender.

@param sender the sender
@param hash   the public key hash
common/src/main/java/me/lucko/luckperms/common/webeditor/store/WebEditorKeystore.java