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 e9bbac2d..e8696e26 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 @@ -2,6 +2,7 @@ package net.draycia.carbon.api.config; import com.google.common.collect.ImmutableList; import com.google.common.collect.ImmutableMap; +import com.google.common.collect.Lists; import net.draycia.carbon.api.CarbonChatProvider; import net.draycia.carbon.api.Context; import net.kyori.adventure.text.format.NamedTextColor; @@ -146,6 +147,7 @@ public final class ChannelOptions { settings.color = "#FFFFFF"; settings.defaultFormatName = "default"; settings.formats = Collections.singletonMap("default", "<> "); + settings.aliases = Lists.newArrayList("global", "g"); return settings; } diff --git a/CarbonChat-Common/src/main/resources/channels.yml b/CarbonChat-Common/src/main/resources/channels.yml index 2987f105..0f72006e 100644 --- a/CarbonChat-Common/src/main/resources/channels.yml +++ b/CarbonChat-Common/src/main/resources/channels.yml @@ -1,7 +1,9 @@ channel-options: global: # The command aliases for this channel - aliases: [] + aliases: + - global + - g # 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.