mirror of
https://github.com/Grasscutters/Grasscutter.git
synced 2025-01-10 12:42:52 +08:00
Format code [skip actions]
This commit is contained in:
parent
15699e562a
commit
3d62e72aa0
@ -11,17 +11,14 @@ import java.util.stream.Collectors;
|
|||||||
@Command(
|
@Command(
|
||||||
label = "quest",
|
label = "quest",
|
||||||
aliases = {"q"},
|
aliases = {"q"},
|
||||||
usage = {
|
usage = {"(add|finish|running|talking|debug|triggers|grouptriggers) [<questId>]", "dungeons"},
|
||||||
"(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 || (args.size() == 1 && !args.get(0).toLowerCase().equals("dungeons"))) {
|
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