diff options
| author | MODKILLER1001 | 2022-10-20 09:00:32 -0400 |
|---|---|---|
| committer | MODKILLER1001 | 2022-10-20 09:00:32 -0400 |
| commit | d809afc2ed88ac3afb37d2aad6760b64c5d9eb15 (patch) | |
| tree | 56cb9a5d8c8760c905213554b4449dbfdbba3481 /src/main/java/com/aizistral/nochatreports | |
| parent | 6f61c187e5168c3f353a02c86d5b87765bbfcbf3 (diff) | |
add more options
Diffstat (limited to 'src/main/java/com/aizistral/nochatreports')
| -rw-r--r-- | src/main/java/com/aizistral/nochatreports/config/ModMenuIntegration.java | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/main/java/com/aizistral/nochatreports/config/ModMenuIntegration.java b/src/main/java/com/aizistral/nochatreports/config/ModMenuIntegration.java index 88b85c2..a0b88b2 100644 --- a/src/main/java/com/aizistral/nochatreports/config/ModMenuIntegration.java +++ b/src/main/java/com/aizistral/nochatreports/config/ModMenuIntegration.java @@ -198,6 +198,17 @@ public final class ModMenuIntegration implements ModMenuApi { .setSaveConsumer(newValue -> NCRConfig.getClient().signingCheckDelaySeconds = newValue) .build()); + // Warning for showEncryptionButton + technical.addEntry(entryBuilder.startTextDescription(Component.translatable("gui.NoChatReports.showEncryptionButtonWarning")) + .build()); + + // Set an option for showEncryptionButton + technical.addEntry(entryBuilder.startBooleanToggle(Component.translatable("option.NoChatReports.showEncryptionButton"), NCRConfig.getEncryption().showEncryptionButton) + .setDefaultValue(true) + .setTooltip(this.makeTooltip("option.NoChatReports.showEncryptionButton.tooltip")) + .setSaveConsumer(newValue -> NCRConfig.getEncryption().showEncryptionButton = newValue) + .build()); + // Instructions for adding servers whitelistedServers.addEntry(entryBuilder.startTextDescription(Component.translatable("option.NoChatReports.whitelistedServers.instructions")) .build()); |
