Add link to placeholders in main config header

This commit is contained in:
Vankka 2023-10-07 21:31:59 +03:00
parent e0bee7e2d8
commit baf7e5027b
No known key found for this signature in database
GPG Key ID: 6E50CB7A29B96AD0
2 changed files with 4 additions and 2 deletions

View File

@ -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";
}

View File

@ -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