From 6f61c187e5168c3f353a02c86d5b87765bbfcbf3 Mon Sep 17 00:00:00 2001 From: MODKILLER1001 Date: Fri, 14 Oct 2022 12:47:43 -0400 Subject: add more options --- .../nochatreports/config/ModMenuIntegration.java | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) (limited to 'src/main/java/com') 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()); -- cgit v1.2.3