mirror of
https://github.com/Grasscutters/Grasscutter.git
synced 2025-01-25 04:15:34 +08:00
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:
parent
55cb7ab967
commit
9dbeb2172d
@ -12,7 +12,7 @@ import java.util.Map;
|
|||||||
@Command(
|
@Command(
|
||||||
label = "list",
|
label = "list",
|
||||||
aliases = {"players"},
|
aliases = {"players"},
|
||||||
usage = {"[<UID>]"},
|
usage = {"[uid]"},
|
||||||
targetRequirement = Command.TargetRequirement.NONE)
|
targetRequirement = Command.TargetRequirement.NONE)
|
||||||
public final class ListCommand implements CommandHandler {
|
public final class ListCommand implements CommandHandler {
|
||||||
|
|
||||||
|
@ -11,14 +11,17 @@ import java.util.stream.Collectors;
|
|||||||
@Command(
|
@Command(
|
||||||
label = "quest",
|
label = "quest",
|
||||||
aliases = {"q"},
|
aliases = {"q"},
|
||||||
usage = {"(add|finish) [<questId>]"},
|
usage = {
|
||||||
|
"(add|finish|running|talking|debug|triggers|grouptriggers) [<questId>]",
|
||||||
|
"dungeons"
|
||||||
|
},
|
||||||
permission = "player.quest",
|
permission = "player.quest",
|
||||||
permissionTargeted = "player.quest.others")
|
permissionTargeted = "player.quest.others")
|
||||||
public final class QuestCommand implements CommandHandler {
|
public final class QuestCommand implements CommandHandler {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void execute(Player sender, Player targetPlayer, List<String> args) {
|
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);
|
sendUsageMessage(sender);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user