Allow changing channel command names, aliases, and registration

This commit is contained in:
Draycia committed 2021-11-30 18:06:45 -08:00
1 parent fb8c773494
commit 18f2826e0e
4 files changed
+124 -51

No files matched your search

@@ -87,6 +87,30 @@ public interface ChatChannel extends Keyed, ChatComponentRenderer {
*/
@Nullable String quickPrefix();
/**
* If commands should be registered for this channel.
*
* @return if commands should be registered for this channel.
* @since 2.0.0
*/
boolean shouldRegisterCommands();
/**
* The text that can be used to refer to this channel in commands.
*
* @return this channel's name when used in commands
* @since 2.0.0
*/
String commandName();
/**
* Alternative command names for this channel.
*
* @return alternative command names
* @since 2.0.0
*/
List<String> commandAliases();
/**
* Represents the result of a channel permission check.
*