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 <b03902015@ntu.edu.tw>

* Update QuestCommand.java

---------

Co-authored-by: Der Chien <b03902015@ntu.edu.tw>
This commit is contained in:
TomyJan 2023-06-11 11:31:39 +08:00 committed by GitHub
parent 55cb7ab967
commit 9dbeb2172d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 3 deletions

View File

@ -12,7 +12,7 @@ import java.util.Map;
@Command(
label = "list",
aliases = {"players"},
usage = {"[<UID>]"},
usage = {"[uid]"},
targetRequirement = Command.TargetRequirement.NONE)
public final class ListCommand implements CommandHandler {

View File

@ -11,14 +11,17 @@ import java.util.stream.Collectors;
@Command(
label = "quest",
aliases = {"q"},
usage = {"(add|finish) [<questId>]"},
usage = {
"(add|finish|running|talking|debug|triggers|grouptriggers) [<questId>]",
"dungeons"
},
permission = "player.quest",
permissionTargeted = "player.quest.others")
public final class QuestCommand implements CommandHandler {
@Override
public void execute(Player sender, Player targetPlayer, List<String> args) {
if (args.size() != 2) {
if (args.size() != 2 || (args.size() == 1 && !args.get(0).toLowerCase().equals("dungeons"))) {
sendUsageMessage(sender);
return;
}