Add command help syntaxes

This commit is contained in:
Draycia committed 2020-08-18 05:20:50 -07:00
1 parent a9eb255e5d
commit 4b9d1eb8d2
12 files changed
+24 -18

No files matched your search

@@ -18,6 +18,7 @@ public class ChannelCommand extends BaseCommand {
@Default
@CommandCompletion("@chatchannel")
@Syntax("<channel> [message]")
public void baseCommand(Player player, @Conditions("canuse:true") ChatChannel channel, @Optional String[] args) {
ChatUser user = carbonChat.getUserService().wrap(player);
@@ -38,6 +39,7 @@ public class ChannelCommand extends BaseCommand {
@CommandPermission("carbonchat.switch.others")
@Subcommand("other")
@CommandCompletion("@chatchannel @players")
@Syntax("<channel> <user>")
public void baseCommand(CommandSender sender, @Conditions("exists:true") ChatChannel channel, ChatUser user) {
user.setSelectedChannel(channel);