mirror of
https://github.com/darksaid98/Carbon.git
synced 2026-12-01 22:15:08 +00:00
More cleanup
This commit is contained in:
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);
|
||||
|
||||
}
|
||||
Reference in new issue
Block a user