mirror of
https://github.com/darksaid98/Carbon.git
synced 2026-12-02 06:28:54 +00:00
Add command help syntaxes
This commit is contained in:
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);
|
||||
|
||||
|
||||
Reference in new issue
Block a user