Touch up command completions a little

This commit is contained in:
Draycia committed 2020-08-26 03:40:53 -07:00
1 parent 5082a4c1bc
commit f17168f68f
10 files changed
+11 -9

No files matched your search

@@ -19,7 +19,7 @@ public class ChannelCommand extends BaseCommand {
private CarbonChat carbonChat;
@Default
@CommandCompletion("@chatchannel")
@CommandCompletion("@chatchannel @nothing")
@Syntax("<channel> [message]")
public void baseCommand(Player player, @Conditions("canuse:true") ChatChannel channel, @Optional String[] args) {
ChatUser user = carbonChat.getUserService().wrap(player);
@@ -31,7 +31,7 @@ public class ChannelListCommand extends BaseCommand {
@CommandPermission("carbonchat.channellist.others")
@Subcommand("user")
@CommandCompletion("@players")
@CommandCompletion("@players @nothing")
@Syntax("<player>")
public void baseCommand(Player player, ChatUser user) {
ChatUser cmdSender = carbonChat.getUserService().wrap(player);
@@ -17,7 +17,7 @@ public class IgnoreCommand extends BaseCommand {
private CarbonChat carbonChat;
@Default
@CommandCompletion("@players")
@CommandCompletion("@players @nothing")
@Syntax("<player>")
public void baseCommand(Player player, ChatUser targetUser) {
ChatUser user = carbonChat.getUserService().wrap(player);
@@ -14,7 +14,7 @@ public class MessageCommand extends BaseCommand {
private CarbonChat carbonChat;
@Default
@CommandCompletion("@players")
@CommandCompletion("@players @nothing")
@Syntax("<player> <message>")
public void baseCommand(Player player, ChatUser targetUser, String... args) {
if (args.length == 0) {
@@ -18,7 +18,7 @@ public class MuteCommand extends BaseCommand {
private CarbonChat carbonChat;
@Default
@CommandCompletion("@players")
@CommandCompletion("@players @nothing")
@Syntax("<player>")
public void baseCommand(CommandSender sender, ChatUser targetUser) {
Audience audience = carbonChat.getAdventureManager().getAudiences().audience(sender);
@@ -19,7 +19,7 @@ public class SetColorCommand extends BaseCommand {
private CarbonChat carbonChat;
@Default
@CommandCompletion("@chatchannel")
@CommandCompletion("@chatchannel @nothing")
@Syntax("<channel> <color>")
public void baseCommand(Player player, @Conditions("canuse:true") ChatChannel channel, String input) {
if (channel == null || input == null) {
@@ -18,7 +18,7 @@ public class ShadowMuteCommand extends BaseCommand {
private CarbonChat carbonChat;
@Default
@CommandCompletion("@players")
@CommandCompletion("@players @nothing")
@Syntax("<player>")
public void baseCommand(CommandSender sender, ChatUser targetUser) {
Audience audience = carbonChat.getAdventureManager().getAudiences().audience(sender);
@@ -16,7 +16,7 @@ public class SpyChannelCommand extends BaseCommand {
private CarbonChat carbonChat;
@Default
@CommandCompletion("@channel")
@CommandCompletion("@channel @nothing")
@Syntax("<channel>")
public void baseCommand(Player player, @Conditions("exists:true") ChatChannel channel) {
ChatUser user = carbonChat.getUserService().wrap(player);
@@ -17,7 +17,7 @@ public class ToggleCommand extends BaseCommand {
private CarbonChat carbonChat;
@Default
@CommandCompletion("@chatchannel @players")
@CommandCompletion("@chatchannel @players @nothing")
@Syntax("<channel>")
public void baseCommand(Player player, @Conditions("canuse:true") ChatChannel channel) {
ChatUser user = carbonChat.getUserService().wrap(player);
@@ -96,4 +96,6 @@ public class FilterHandler implements Listener {
return filter instanceof Boolean && ((Boolean) filter);
}
}