From 22e94861eb043a7898bc03ba8db6826c4a7041b2 Mon Sep 17 00:00:00 2001 From: MODKILLER1001 Date: Sun, 7 Aug 2022 15:57:49 -0400 Subject: Add instructions --- src/main/java/com/aizistral/nochatreports/ModMenuIntegration.java | 4 ++++ src/main/resources/assets/nochatreports/lang/en_us.json | 3 ++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/src/main/java/com/aizistral/nochatreports/ModMenuIntegration.java b/src/main/java/com/aizistral/nochatreports/ModMenuIntegration.java index 832fd51..884bf12 100644 --- a/src/main/java/com/aizistral/nochatreports/ModMenuIntegration.java +++ b/src/main/java/com/aizistral/nochatreports/ModMenuIntegration.java @@ -117,6 +117,10 @@ public class ModMenuIntegration implements ModMenuApi { .setSaveConsumer(newValue -> NoReportsConfig.getInstance().whitelistAllServers = newValue) .build()); + // Instructions for adding servers + whitelistedServers.addEntry(entryBuilder.startTextDescription(Component.translatable("option.NoChatReports.whitelistedServers.instructions")) + .build()); + // Add or remove whitelisted servers whitelistedServers.addEntry(entryBuilder.startStrList(Component.translatable("option.NoChatReports.whitelistedServers"), NoReportsConfig.getInstance().whitelistedServers) .setExpanded(true) diff --git a/src/main/resources/assets/nochatreports/lang/en_us.json b/src/main/resources/assets/nochatreports/lang/en_us.json index 621e66c..a7893ed 100644 --- a/src/main/resources/assets/nochatreports/lang/en_us.json +++ b/src/main/resources/assets/nochatreports/lang/en_us.json @@ -43,5 +43,6 @@ "option.NoChatReports.whitelistedServers":"Whitelisted servers", "option.NoChatReports.whitelistedServers.tooltip":"Current list of whitelisted unsafe servers.\nUsed on client to remember which servers user disabled unsafety warnings for.", "option.NoChatReports.whitelistedServers.addButtonTooltip":"Add server", - "option.NoChatReports.whitelistedServers.removeButtonTooltip":"Remove server" + "option.NoChatReports.whitelistedServers.removeButtonTooltip":"Remove server", + "option.NoChatReports.whitelistedServers.instructions":"When adding a server click below Whitelisted servers to type in the field." } \ No newline at end of file -- cgit v1.2.3