From baf7e5027b75b2bc3b5e9f34853e495dafb8770e Mon Sep 17 00:00:00 2001 From: Vankka Date: Sat, 7 Oct 2023 21:31:59 +0300 Subject: [PATCH] Add link to placeholders in main config header --- .../common/config/documentation/DocumentationURLs.java | 1 + .../java/com/discordsrv/common/config/main/MainConfig.java | 5 +++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/common/src/main/java/com/discordsrv/common/config/documentation/DocumentationURLs.java b/common/src/main/java/com/discordsrv/common/config/documentation/DocumentationURLs.java index feb21304..e6da4012 100644 --- a/common/src/main/java/com/discordsrv/common/config/documentation/DocumentationURLs.java +++ b/common/src/main/java/com/discordsrv/common/config/documentation/DocumentationURLs.java @@ -5,6 +5,7 @@ public final class DocumentationURLs { private DocumentationURLs() {} public static final String CREATE_TOKEN = "https://docs.discordsrv.com/installation/initial-setup/#setting-up-the-bot"; + public static final String PLACEHOLDERS = "https://docs.discordsrv.com/ascension/placeholders/"; public static final String ELT_FORMAT = "https://github.com/Vankka/EnhancedLegacyText/wiki/Format"; public static final String DISCORD_MARKDOWN = "https://support.discord.com/hc/en-us/articles/210298617"; } diff --git a/common/src/main/java/com/discordsrv/common/config/main/MainConfig.java b/common/src/main/java/com/discordsrv/common/config/main/MainConfig.java index 48b02279..7ec54e55 100644 --- a/common/src/main/java/com/discordsrv/common/config/main/MainConfig.java +++ b/common/src/main/java/com/discordsrv/common/config/main/MainConfig.java @@ -38,13 +38,14 @@ public abstract class MainConfig implements Config { public static final String FILE_NAME = "config.yaml"; - @Constants({DocumentationURLs.ELT_FORMAT, DocumentationURLs.DISCORD_MARKDOWN}) + @Constants({DocumentationURLs.ELT_FORMAT, DocumentationURLs.DISCORD_MARKDOWN, DocumentationURLs.PLACEHOLDERS}) public static final String HEADER = String.join("\n", Arrays.asList( "Welcome to the DiscordSRV configuration file", "", "Looking for the \"BotToken\" option? It has been moved into the " + ConnectionConfig.FILE_NAME, "Need help with the format for Minecraft messages? %1", - "Need help with Discord markdown? %2" + "Need help with Discord markdown? %2", + "List of placeholders %3" )); @Override