summaryrefslogtreecommitdiffstats
path: root/src/main/java
diff options
context:
space:
mode:
authorMODKILLER10012022-10-14 12:47:43 -0400
committerMODKILLER10012022-10-14 12:47:43 -0400
commit6f61c187e5168c3f353a02c86d5b87765bbfcbf3 (patch)
treeb8ef701c6d7d1062c35a0463a62d3e2caf38e648 /src/main/java
parent3e2ee0a9ec8966dbedfa08eb83efba9d2ca2e49b (diff)
add more options
Diffstat (limited to 'src/main/java')
-rw-r--r--src/main/java/com/aizistral/nochatreports/config/ModMenuIntegration.java21
1 files changed, 21 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 d0ee316..88b85c2 100644
--- a/src/main/java/com/aizistral/nochatreports/config/ModMenuIntegration.java
+++ b/src/main/java/com/aizistral/nochatreports/config/ModMenuIntegration.java
@@ -177,6 +177,27 @@ public final class ModMenuIntegration implements ModMenuApi {
.setSaveConsumer(newValue -> NCRConfig.getClient().enableMod = newValue)
.build());
+ // Set an option for reconnectAwaitSeconds
+ technical.addEntry(entryBuilder.startIntField(Component.translatable("option.NoChatReports.reconnectAwaitSeconds"), NCRConfig.getClient().reconnectAwaitSeconds)
+ .setDefaultValue(4)
+ .setTooltip(this.makeTooltip("option.NoChatReports.reconnectAwaitSeconds.tooltip"))
+ .setSaveConsumer(newValue -> NCRConfig.getClient().reconnectAwaitSeconds = newValue)
+ .build());
+
+ // Set an option for postDisconnectAwaitSeconds
+ technical.addEntry(entryBuilder.startIntField(Component.translatable("option.NoChatReports.postDisconnectAwaitSeconds"), NCRConfig.getClient().postDisconnectAwaitSeconds)
+ .setDefaultValue(10)
+ .setTooltip(this.makeTooltip("option.NoChatReports.postDisconnectAwaitSeconds.tooltip"))
+ .setSaveConsumer(newValue -> NCRConfig.getClient().postDisconnectAwaitSeconds = newValue)
+ .build());
+
+ // Set an option for signingCheckDelaySeconds
+ technical.addEntry(entryBuilder.startIntField(Component.translatable("option.NoChatReports.signingCheckDelaySeconds"), NCRConfig.getClient().signingCheckDelaySeconds)
+ .setDefaultValue(43200)
+ .setTooltip(this.makeTooltip("option.NoChatReports.signingCheckDelaySeconds.tooltip"))
+ .setSaveConsumer(newValue -> NCRConfig.getClient().signingCheckDelaySeconds = newValue)
+ .build());
+
// Instructions for adding servers
whitelistedServers.addEntry(entryBuilder.startTextDescription(Component.translatable("option.NoChatReports.whitelistedServers.instructions"))
.build());