Register aliases for aliased channel commands

This commit is contained in:
Draycia committed 2020-12-03 18:11:39 -08:00
1 parent a629f97a52
commit 7879e47ea7
5 files changed
+7 -7

No files matched your search

@@ -527,7 +527,7 @@ public class CarbonChatChannel implements TextChannel {
}
@Override
public @Nullable List<String> aliases() {
public @NonNull List<String> aliases() {
return this.options().aliases();
}
@@ -26,7 +26,7 @@ public class AliasedChannelCommand {
this.commandName = chatChannel.key();
commandManager.command(
commandManager.commandBuilder(this.commandName,
commandManager.commandBuilder(this.commandName, this.chatChannel.aliases(),
commandManager.createDefaultCommandMeta())
.senderType(PlayerUser.class) // player
.permission("carbonchat.channel")
@@ -35,7 +35,7 @@ public class AliasedChannelCommand {
);
commandManager.command(
commandManager.commandBuilder(this.commandName,
commandManager.commandBuilder(this.commandName, this.chatChannel.aliases(),
commandManager.createDefaultCommandMeta())
.senderType(PlayerUser.class) // player
.permission("carbonchat.channel.message")