More cleanup

This commit is contained in:
Draycia committed 2023-06-23 13:49:11 -07:00
1 parent 547adcf0fe
commit 47b1ba4d7f
8 files changed
+47 -28

No files matched your search

@@ -22,6 +22,7 @@ package net.draycia.carbon.api.channels;
import net.draycia.carbon.api.util.DefaultedKeyValueRegistry;
import net.kyori.adventure.key.Key;
import net.kyori.registry.Registry;
import org.checkerframework.checker.nullness.qual.Nullable;
/**
* Registry for chat channels.
@@ -38,4 +39,12 @@ public interface ChannelRegistry extends Registry<Key, ChatChannel>, DefaultedKe
*/
void registerChannelCommands(final ChatChannel channel);
/**
* Gets the channel with the corresponding command name.
*
* @param channelName the command used to speak in the channel
* @return the channel
*/
@Nullable ChatChannel byCommandName(final String channelName);
}