From 9dbeb2172d785618035369abddb7307f4c1b7e9a Mon Sep 17 00:00:00 2001 From: TomyJan Date: Sun, 11 Jun 2023 11:31:39 +0800 Subject: [PATCH] fix description of command `quest` and `list` (#2203) * fix description of command `quest` and `list` * Update src/main/java/emu/grasscutter/command/commands/QuestCommand.java Co-authored-by: Der Chien * Update QuestCommand.java --------- Co-authored-by: Der Chien --- .../java/emu/grasscutter/command/commands/ListCommand.java | 2 +- .../emu/grasscutter/command/commands/QuestCommand.java | 7 +++++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/src/main/java/emu/grasscutter/command/commands/ListCommand.java b/src/main/java/emu/grasscutter/command/commands/ListCommand.java index 1b0bc954f..8bdc331d8 100644 --- a/src/main/java/emu/grasscutter/command/commands/ListCommand.java +++ b/src/main/java/emu/grasscutter/command/commands/ListCommand.java @@ -12,7 +12,7 @@ import java.util.Map; @Command( label = "list", aliases = {"players"}, - usage = {"[]"}, + usage = {"[uid]"}, targetRequirement = Command.TargetRequirement.NONE) public final class ListCommand implements CommandHandler { diff --git a/src/main/java/emu/grasscutter/command/commands/QuestCommand.java b/src/main/java/emu/grasscutter/command/commands/QuestCommand.java index ad81f428d..00b6a8652 100644 --- a/src/main/java/emu/grasscutter/command/commands/QuestCommand.java +++ b/src/main/java/emu/grasscutter/command/commands/QuestCommand.java @@ -11,14 +11,17 @@ import java.util.stream.Collectors; @Command( label = "quest", aliases = {"q"}, - usage = {"(add|finish) []"}, + usage = { + "(add|finish|running|talking|debug|triggers|grouptriggers) []", + "dungeons" + }, permission = "player.quest", permissionTargeted = "player.quest.others") public final class QuestCommand implements CommandHandler { @Override public void execute(Player sender, Player targetPlayer, List args) { - if (args.size() != 2) { + if (args.size() != 2 || (args.size() == 1 && !args.get(0).toLowerCase().equals("dungeons"))) { sendUsageMessage(sender); return; }