Skip to content

Commit

Permalink
fix description of command quest and list (#2203)
Browse files Browse the repository at this point in the history
* 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>
  • Loading branch information
TomyJan and der3318 authored Jun 11, 2023
1 parent 55cb7ab commit 9dbeb21
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
@Command(
label = "list",
aliases = {"players"},
usage = {"[<UID>]"},
usage = {"[uid]"},
targetRequirement = Command.TargetRequirement.NONE)
public final class ListCommand implements CommandHandler {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,17 @@
@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;
}
Expand Down

0 comments on commit 9dbeb21

Please sign in to comment.