From 056ee5735bc92e3d0d2857623f7f4ae59a6cd264 Mon Sep 17 00:00:00 2001 From: Draycia Date: Thu, 3 Dec 2020 17:40:05 -0800 Subject: [PATCH] Update some channel option docs --- .../net/draycia/carbon/api/config/ChannelOptions.java | 6 +++--- CarbonChat-Common/src/main/resources/channels.yml | 10 +++++----- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/CarbonChat-API/src/main/java/net/draycia/carbon/api/config/ChannelOptions.java b/CarbonChat-API/src/main/java/net/draycia/carbon/api/config/ChannelOptions.java index e8696e26..8c82a67d 100644 --- a/CarbonChat-API/src/main/java/net/draycia/carbon/api/config/ChannelOptions.java +++ b/CarbonChat-API/src/main/java/net/draycia/carbon/api/config/ChannelOptions.java @@ -23,7 +23,7 @@ import java.util.Map; public final class ChannelOptions { @Setting - @Comment("What this channel is identified as. This will be what's typed ingame to use the channel.") + @Comment("What this channel is identified as. This is used in command arguments (/channel global)") private @NonNull String key = "channel"; @Setting @@ -71,7 +71,7 @@ public final class ChannelOptions { private List groupOverrides; @Setting - @Comment("The display name of this channel, supports minimessage. Used in command feedback") + @Comment("# The display name of this channel, supports minimessage. Used in command feedback (\"You switched to the Global channel\")") private String name = ""; @Setting @@ -79,7 +79,7 @@ public final class ChannelOptions { private String messagePrefix = ""; @Setting - @Comment("The command aliases for this channel") + @Comment("The command aliases for this channel (/global /g)") private List aliases = new ArrayList<>(); @Setting diff --git a/CarbonChat-Common/src/main/resources/channels.yml b/CarbonChat-Common/src/main/resources/channels.yml index 0f72006e..7211accd 100644 --- a/CarbonChat-Common/src/main/resources/channels.yml +++ b/CarbonChat-Common/src/main/resources/channels.yml @@ -1,9 +1,13 @@ channel-options: global: - # The command aliases for this channel + # What this channel is identified as. This is used in command arguments (/channel global) + key: global + # The command aliases for this channel (/global /g) aliases: - global - g + # The display name of this channel, supports minimessage. Used in command feedback ("You switched to the Global channel") + name: Global # This is what the placeholder will typically be replaced with. # Hex RGB (#B19CD9), named colors (light_purple), legacy (&d), and legacy RGB (&x&b&1&2&c&d&9) are all supported. # If on a platform that supports PlaceholderAPI, this option will be ran through that as well. @@ -28,12 +32,8 @@ channel-options: # If this channel is the default channel players join in. # Also used as a fallback in case the player's selected channel cannot be found. is-default: true - # What this channel is identified as. This will be what's typed ingame to use the channel. - key: global # If the player's chat message starts with whatever this is set to, the player speaks in this channel instead of their selected one message-prefix: '' - # The display name of this channel, supports minimessage. Used in command feedback - name: Global # Used for message formats - custom tags that are replaced in descending order # For example, in the default config, wil be replaced with %vault_group%